How to Calculate Hours Worked: Timesheet Examples & Overtime

Short answer
Convert both times to minutes after midnight, subtract, add 1,440 minutes if the shift crosses midnight, then take off unpaid breaks. Example: 08:30 to 18:00 with a 45-minute unpaid lunch is 525 minutes, which is 8 h 45 min or 8.75 decimal hours.
Timesheets, freelance invoices and payroll checks all come down to the same sum: how much time sits between clocking in and clocking out, minus the time you were not working. The arithmetic is simple, but three things trip people up again and again: mixing clock time with decimal hours, shifts that cross midnight, and breaks that may or may not be paid. This guide works through each one with real numbers. You can check every line with the hours calculator.
The method in five steps
- Write both times in 24-hour form. 5:15 pm becomes 17:15. This removes the am/pm guesswork.
- Turn each time into minutes after midnight. Hours Γ 60 + minutes. 08:45 is 8 Γ 60 + 45 = 525. 17:15 is 17 Γ 60 + 15 = 1,035.
- Subtract start from end. 1,035 β 525 = 510 minutes.
- If the answer is negative, the shift crossed midnight. Add 1,440 (the minutes in a day).
- Take off unpaid breaks, then convert back. 510 β 30 = 480 minutes = 8 h 00 min = 8.0 hours.
Working in minutes is the key. If you subtract 17:15 β 8:45 directly you get β9:β30β, which is where most hand-calculation errors begin.
Minutes to decimal hours
Payroll systems and invoices usually want decimal hours, because you multiply them by an hourly rate. Divide the minutes by 60. Clock time and decimal time look similar but are not the same: 7 h 30 min is 7.5 hours, not 7.3.
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 | 60 | 1.00 |
Values are rounded to two decimal places. For pay, keep the total in minutes until the very end and divide once, so rounding errors do not pile up across a week.
A full week, worked out
Here is one realistic week with different start times, a longer lunch on Wednesday and a short Saturday shift with no break.
| Day | In | Out | Unpaid break | Worked | Decimal |
|---|---|---|---|---|---|
| Mon | 08:45 | 17:15 | 30 min | 8 h 00 | 8.00 |
| Tue | 09:00 | 17:30 | 30 min | 8 h 00 | 8.00 |
| Wed | 08:30 | 18:00 | 45 min | 8 h 45 | 8.75 |
| Thu | 09:15 | 17:00 | 30 min | 7 h 15 | 7.25 |
| Fri | 07:50 | 16:20 | 30 min | 8 h 00 | 8.00 |
| Sat | 10:00 | 15:30 | none | 5 h 30 | 5.50 |
| Week total | 45 h 30 | 45.50 | |||
The week adds up to 2,730 minutes, which is 45.5 hours. At $20 an hour with no overtime that would be 45.5 Γ 20 = $910, but in most places a 45.5-hour week does include overtime, as the next sections show.
Overnight shifts
A shift from 22:00 to 06:30 gives 390 β 1,320 = β930 minutes. Add 1,440 and you get 510 minutes. Take off a 30-minute unpaid meal break and the shift is 480 minutes, or 8.0 hours. If you log night shifts, record the date you clocked in as well as the time, so a reviewer can see that 06:30 belongs to the next morning.
Daylight saving time can make one night shift an hour longer or shorter. In Canada and the US the clocks change on a Sunday at 2:00 am, so a 22:00 to 06:30 shift on that night really lasts 7.5 hours in spring or 9.5 hours in autumn before breaks, not 8.5. Check the actual date with the time zone meeting planner, which uses the official time zone database.
Which breaks count
Whether you subtract a break depends on whether it is paid. Under the US Fair Labor Standards Act, the Department of Labor says short rest periods, usually 20 minutes or less, are customarily paid and must be counted as hours worked, while bona fide meal periods, typically 30 minutes or more, generally do not need to be paid, as long as the employee is completely relieved from duty. Eating at your desk while answering the phone is work time. Other countries, provinces and employment contracts set their own rules, so check your contract or your local labour standards office.
Overtime: US and Ontario
Overtime is usually counted per work week, not per day, and the weekly threshold differs by place:
- United States (federal FLSA): unless exempt, covered employees get at least 1.5 times their regular rate for hours over 40 in a workweek. The workweek is any fixed, recurring 168-hour period, and hours cannot be averaged over two weeks.
- Ontario, Canada (Employment Standards Act): for most employees overtime starts after 44 hours in a work week, at 1.5 times the regular rate. There is no daily overtime unless a contract or collective agreement says so.
Using the 45.5-hour week above at $20 an hour:
| US federal rule (over 40) | Ontario rule (over 44) | |
|---|---|---|
| Regular hours | 40 Γ $20 = $800.00 | 44 Γ $20 = $880.00 |
| Overtime hours | 5.5 Γ $30 = $165.00 | 1.5 Γ $30 = $45.00 |
| Gross pay | $965.00 | $925.00 |
Many US states and other provinces have their own rules, some with daily overtime, and some jobs are exempt. Treat this as a worked example, not a statement of what you are owed.
Common mistakes
- Writing 8:45 as 8.45. Eight hours forty-five minutes is 8.75 decimal hours. Using 8.45 underpays 18 minutes.
- Forgetting to add 1,440 on night shifts, which gives a negative or absurdly short shift.
- Rounding every day, then adding. Add the minutes for the week first and round once.
- Subtracting paid breaks. A paid 15-minute rest break stays in the total.
- Applying daily overtime where the rule is weekly, or the other way round.
Frequently asked questions
How do I calculate hours between two times?
Convert both times to minutes after midnight, subtract the start from the end, add 1,440 if the shift crosses midnight, and subtract unpaid breaks. Divide by 60 for decimal hours.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25, 30 is 0.5, 45 is 0.75. So 7 hours 45 minutes is 7.75 hours.
How do I calculate an overnight shift?
If the end time is earlier than the start time, add 24 hours (1,440 minutes) to the end. 22:00 to 06:30 is 8 h 30 min before breaks.
Do I subtract lunch breaks from hours worked?
Only unpaid breaks. Under the US FLSA, short rest breaks of about 20 minutes or less are counted as work time, while genuine meal breaks of 30 minutes or more where you are fully off duty usually are not. Your contract and local law decide.
When does overtime start?
Under the US federal FLSA it is hours over 40 in a workweek. In Ontario it is hours over 44 in a work week for most employees. Both pay at least 1.5 times the regular rate. Other states and provinces differ.
Does daylight saving time change my hours?
Yes, for a shift that runs through the 2:00 am clock change. The shift is one hour shorter in spring and one hour longer in autumn than the clock times suggest.
Sources
- US Department of Labor: Overtime pay (FLSA) (checked 30 November 2026)
- US Department of Labor: Fact Sheet #22, Hours worked under the FLSA (checked 30 November 2026)
- Ontario: Your guide to the Employment Standards Act, Overtime pay (checked 30 November 2026)
Note: General information with worked examples only. It is not legal or payroll advice. Overtime and break rules depend on your country, state or province, job type and contract.