Determine the total number of hours