Not knocking your replies to my question, but none of them worked.
i tried this instead

$duration($calc($ctime - $5))).ctime

and it works fine crazy