For the third format, wouldn't this be a simplier way of returning the same message?

Code:
$replace($duration($idle),wks,w,days,d,hrs,h,mins,m)