Time Calculator
Adds and subtracts amounts of time, for example 2h 45m + 1h 30m.
Enter a start time and an end time to see how long it is between them. The time duration calculator handles overnight shifts and ranges that span several days.
Without dates, the calculator subtracts the start time from the end time:
diff = end − start if diff < 0: diff = diff + 24 h
A negative difference means the period crosses midnight, so 24 hours are added and an "Overnight" note is shown.
With dates, both points are combined into a date and time and subtracted directly:
diff = (endDate + endTime) − (startDate + startTime)
Timesheets and invoices often ask for hours as a decimal. Divide the minutes by 60 and add the result to the hours: 8 hours 25 minutes is 8 + 25 ÷ 60 = 8.4167 hours.
| Minutes | Decimal hours |
|---|---|
| 15 | 0.25 |
| 20 | 0.3333 |
| 30 | 0.5 |
| 40 | 0.6667 |
| 45 | 0.75 |
A common mistake is to write 8:25 as 8.25. That is 8 hours 15 minutes, so each entry comes out 10 minutes short. The calculator shows the decimal value under every result to avoid this.
Subtract the start time from the end time. If the end is earlier than the start, add 24 hours, because the period crosses midnight.
Yes. When the end time is earlier than the start time, the calculator assumes the end is on the next day and shows an "Overnight" note.
Yes. Turn on "Different dates" and enter a start date and an end date.
No. It uses wall-clock time. On the night clocks change, the real elapsed time may be one hour more or less.
Often used together with the Time Duration Calculator.
Adds and subtracts amounts of time, for example 2h 45m + 1h 30m.
Hours worked for a regular schedule, projected over a week, month, and year.
A one-week timesheet with a row per day, overtime, and pay.