$duration($ctime(22/2/2003 13:28:32)) - is returning the time between the epoch (Jan 1, 1970) and that date given. You want $duration($calc($ctime - $ctime(22/2/2003 13:28:32))).