Date and time

Time duration calculator

Find the hours and minutes between two times, with a break and night shifts.

Start time
End time
Reset

Working time, after the break

8 hours

9:00 AM to 5:30 PM

Decimal hours
8
Total minutes
480
Before the break
8 hours 30 minutes
Break
30 minutes

Time duration calculator: hours between two times

Enter a start time and an end time and this calculator gives the hours and minutes between them. Add an unpaid break and it subtracts it. If the end time is earlier than the start, it assumes the shift ends the next day, so night shifts work without extra steps. The result is also shown in decimal hours and total minutes, ready to type into a timesheet or payroll system.

How to calculate working hours with a break

  1. Convert each time to minutes since midnight (1:30 PM is 13 × 60 + 30 = 810).
  2. Subtract start from end. If the result is negative, add 24 hours.
  3. Subtract the unpaid break in minutes.
  4. Divide the remaining minutes by 60 for decimal hours.

From 9:00 AM to 5:30 PM with a 30-minute break, the span is 510 minutes, minus 30 leaves 480, which is exactly 8 hours.

Minutes to decimal hours conversion

Use this when a timesheet asks for hours as a decimal
MinutesDecimal hours
5 min0.083
10 min0.167
15 min0.25
20 min0.333
30 min0.5
40 min0.667
45 min0.75
50 min0.833

The most common timesheet error is writing 7 hours 30 minutes as 7.30. It is 7.5. Minutes are out of 60, not 100.

Night shifts and shifts that cross midnight

A shift from 10:00 PM to 6:00 AM has an end time earlier than its start time. The calculator adds 24 hours to the end, giving 8 hours. For anything longer than 24 hours, such as a two-day job, use the date difference calculator instead.

Hours between common shift times

Working hours
ShiftBreakHoursDecimal
9:00 AM to 5:30 PM30 min8 h 0 m8.00
8:00 AM to 4:00 PM60 min7 h 0 m7.00
10:00 PM to 6:00 AMnone8 h 0 m8.00
7:30 AM to 12:15 PMnone4 h 45 m4.75

To turn hours into pay, multiply the decimal figure by the hourly rate. 7 h 45 m at ₹150 an hour is 7.75 × 150 = ₹1,162.50.

Paid and unpaid breaks

Enter the break only if it is unpaid. A paid 15-minute tea break stays in the working time, so leave the break at 0. Local law and your contract decide which breaks are paid, so follow those, not the calculator.

Weekly hours and overtime

Calculate each day, add the decimal hours, and compare with your contracted week. A 5-day week of 8 hours is 40 hours; anything above the threshold in your contract may count as overtime. Decimal hours multiply cleanly by an hourly rate: 7.75 hours at 400 an hour is 3,100.

Related calculators