How to Calculate the difference between two dates?

I want the difference between two following date using scripts in terms of no.of days. How I can accomplish this.

lastdate=Tue Nov 13 10:30:56 2012
currdate=Wed Dec 15 15:58:21 PAKST 2012

Ouput should be like this:

Your Password will expire after =  32 Days on  Wed Dec 15 15:58:21 PAKST 2012

Hi,

You can use below code in your script.

start=$SECONDS;sleep 5; end=$SECONDS;echo Difference:$((end-start))

Difference:5

Regards,
Goksel Yangin
Computer Engineer