Correct error in time calculations.