Combined time calculation functions