added functionality to calculate time since last goal