Paramater substitution instead of command subsitution was being used causing the calculation of time since last check to be incorrect.