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
- Convert each time to minutes since midnight (1:30 PM is 13 × 60 + 30 = 810).
- Subtract start from end. If the result is negative, add 24 hours.
- Subtract the unpaid break in minutes.
- 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
| Minutes | Decimal hours |
|---|---|
| 5 min | 0.083 |
| 10 min | 0.167 |
| 15 min | 0.25 |
| 20 min | 0.333 |
| 30 min | 0.5 |
| 40 min | 0.667 |
| 45 min | 0.75 |
| 50 min | 0.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
| Shift | Break | Hours | Decimal |
|---|---|---|---|
| 9:00 AM to 5:30 PM | 30 min | 8 h 0 m | 8.00 |
| 8:00 AM to 4:00 PM | 60 min | 7 h 0 m | 7.00 |
| 10:00 PM to 6:00 AM | none | 8 h 0 m | 8.00 |
| 7:30 AM to 12:15 PM | none | 4 h 45 m | 4.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.