$remaining will be your days left. You may have to switch the floor() function to ceil()... I didn't figure out the real difference in the dates but this script shows 71 days remaining. Tell me if this is wrong and I'll fix it up for you.
// Days left = difference between timestamps in seconds (expiry - now) // divided by number of seconds in a day (86,400) // Use floor() to round down to the day. $iDaysLeft = floor(($iDateExpire - time()) / (24 * 60 * 60));
// Output: // There are 71 days left until 2008-02-23 02:37. printf('There are %d days left until %s.', $iDaysLeft, date('Y-m-d H:i', $iDateExpire));