forgettin some color boxes?
also, that $replace, your replacing wk with wk, mins with mins, hr with hr, etc...
maybe replace hr with hour, mins with minutes, wk with week?