in reply to Am I missing something here?

Well, looking in the background info you provided I saw that you define the month as $temp1[30].

Wouldn't be easyier to do something like:
$month = $temp1[30]; $limit = $month + 3; # 90 days = 3 months if ($month >= $limit) { print "Time's up!"; } else { print "You still have some time, enjoy it!"; }
The solution seems that simple for me, unless I'm missing something...

Hope that helps.

Regards,

Er Galvão Abbott
a.k.a. Lobo, DaWolf
Webdeveloper