This time calculator does four jobs: it finds the hours between two clock times, adds and subtracts durations, moves a clock time forward or back, and totals a week of shifts. Enter 9:00 AM to 5:30 PM with a 30-minute break and you get 8 hours, 8.00 in decimal hours and 480 minutes. Shifts that run past midnight work without any extra setting, and every result comes with the matching Excel formula.

How to use the time calculator
- Hours between times: pick a start and end time, add unpaid break minutes if any. If the end is earlier than the start, the tool assumes the shift ended the next day.
- Add / subtract: each line takes hours, minutes and seconds with a plus or minus sign. Use it for meeting lengths, video clips or split times. Add lines as needed.
- Clock time +/-: start from a time such as 10:30 PM and add or subtract hours and minutes. The result says whether it lands on the same day, the next day or the day before.
- Weekly timesheet: fill one row per day. You get the week total, decimal hours, regular and overtime hours and, if you type an hourly rate, gross pay before tax. Leave a day blank to skip it.
How to add and subtract time by hand
Time is the one everyday number system that rolls over at 60 instead of 10, so ordinary column arithmetic gives wrong answers. 2:50 plus 1:35 is not 3:85. The safe method is to convert everything to minutes, do the math, then convert back. 2:50 is 170 minutes, 1:35 is 95 minutes, the total is 265 minutes, and 265 divided by 60 is 4 with 25 left over, so the answer is 4:25.

| Task | Method | Example |
|---|---|---|
| Hours and minutes to minutes | hours × 60 + minutes | 2:45 = 165 min |
| Minutes to hours and minutes | divide by 60, keep the remainder | 265 min = 4 h 25 min |
| Subtract and run short on minutes | borrow 1 hour = 60 minutes | 6:15 - 2:45 = 3:30 |
| Clock time plus a duration | add minutes, then take the result modulo 1,440 | 10:30 PM + 3:45 = 2:15 AM |
Minutes to decimal hours: why 7:15 is not 7.15
Payroll systems and invoices usually want decimal hours, and this is where most mistakes happen. A quarter of an hour is 0.25, not 0.15. To convert, divide the minutes by 60. So 7 hours 15 minutes is 7.25 hours, and 7.15 hours is really 7 hours 9 minutes. Mixing the two on a timesheet quietly shifts pay by a few minutes per shift.

| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.08 | 30 | 0.50 |
| 6 | 0.10 | 40 | 0.67 |
| 10 | 0.17 | 45 | 0.75 |
| 15 | 0.25 | 50 | 0.83 |
| 20 | 0.33 | 55 | 0.92 |
Tip: six minutes is exactly one tenth of an hour. That is why some payroll systems record time in tenths, and why the weekly timesheet above has a "nearest 6 min" rounding option.
Overnight shifts and clock changes
For a shift from 10:00 PM to 6:00 AM, plain subtraction gives 6 minus 22, or -16 hours. The fix is to add 24 hours whenever the end time is earlier than the start time, which gives 8 hours. The calculator does this for you. The one case it cannot guess is a start and end time that are identical: it returns 0, so enter a 24-hour shift as two shifts.

Daylight saving time: the calculator works with clock times, not calendar dates. On the night clocks spring forward an overnight shift is one hour shorter than the clock suggests, and on the night they fall back it is one hour longer. Add or subtract that hour by hand if your shift crosses the change.
Timesheets: breaks, rounding and overtime
Whether a break is paid is a legal question, not a math one. In the US, the Department of Labor says short rest breaks of about 20 minutes or less are normally paid and count as hours worked, while bona fide meal periods, typically 30 minutes or more with the employee completely relieved of duty, generally need not be paid. The weekly timesheet asks for unpaid minutes only, so enter just the unpaid part.
Rounding is allowed in limited form. The federal rules accept recording start and stop times to the nearest 5 minutes, one-tenth or quarter of an hour, provided it averages out and does not shortchange employees over time. Under the federal Fair Labor Standards Act, hours beyond 40 in a workweek are paid at one and a half times the regular rate. A few states, California among them, also set daily overtime, which this tool does not apply.
Worked example: Monday to Thursday 9:00 AM to 5:30 PM with a 30-minute break is 8 hours each. Friday 9:00 AM to 5:00 PM with 30 minutes off is 7.5 hours. That makes 39.5 hours with no overtime. Add a Saturday shift of 8:00 AM to 12:00 PM and the week is 43.5 hours: 40 regular and 3.5 overtime. At $20 an hour that is 40 × $20 + 3.5 × $30 = $905.00 before tax.
Time formulas for Excel and Google Sheets
Spreadsheets store a time as a fraction of a day, so 12:00 PM is 0.5 and one hour is 1/24. That is why a plain subtraction of two times can show a strange result unless the cell is formatted as time.
| Goal | Formula (start in A2, end in B2) | Format |
|---|---|---|
| Hours between, overnight safe | =MOD(B2-A2,1) | [h]:mm |
| Same, minus a 30-minute break | =MOD(B2-A2,1)-30/1440 | [h]:mm |
| Decimal hours | =MOD(B2-A2,1)*24 | Number, 2 decimals |
| Add 3 h 45 min to a time | =MOD(A2+TIME(3,45,0),1) | h:mm AM/PM |
| Total a column of durations | =SUM(C2:C8) | [h]:mm |
Use [h]:mm rather than h:mm for totals. Without the brackets, Excel wraps at 24 hours and a 43:30 week shows as 19:30.

Frequently asked questions
How do I calculate hours worked between two times?
Subtract the start time from the end time, then subtract unpaid break minutes. For 9:00 AM to 5:30 PM with a 30-minute break that is 8 hours 30 minutes minus 30 minutes, or 8 hours.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add the result to the hours. 7 hours 30 minutes is 7.5, and 7 hours 15 minutes is 7.25.
How do I calculate an overnight shift?
If the end time is earlier than the start time, add 24 hours to the end time before subtracting. 10:00 PM to 6:00 AM becomes 22:00 to 30:00, which is 8 hours.
Is 7.15 hours the same as 7 hours 15 minutes?
No. 7.15 hours is 7 hours 9 minutes, because 0.15 × 60 = 9. Seven hours fifteen minutes is 7.25 hours.
Does the calculator save or send my times?
No. All calculations happen in your browser tab. Nothing you enter is stored or sent to our server.
Sources: Last checked November 2026. US Department of Labor, Fact Sheet #22: Hours Worked Under the FLSA (rest breaks, meal periods, overtime after 40 hours); 29 CFR 785.48 (rounding practices). This page is general information, not legal or payroll advice.