Initial time calculation