time calculation changes