#9 time calculation