calculate-time-remaining now operational