Day shift with a half-hour break
- Calculate
- One shift
- Start time
- 09:00
- End time
- 17:30
- Unpaid break
- 30 min
- Hours worked
- 8 h
- Time worked
- 8:00
- Crosses midnight
- No
Checked against: 8.5 h − 0.5 h = 8 h by hand
Calculate work hours, breaks and weekly timesheets. Use dates and a time zone for overnight shifts across daylight-saving changes and repeated hours.
By AdminDrafted with AI writing toolsUpdated Checked examples: 8
From 09:00 to 17:30 minus a 30 min break is 8 hours (8:00).
In the formula, h is hours worked, s_i is the elapsed duration of shift i in seconds, and b_i is its unpaid break in seconds.
The start time is subtracted from the end time; when the end is at or before the start, the shift is taken to finish the next day, so 24 hours are added first. The unpaid break is then taken off, and the result is shown in decimal hours (seconds ÷ 3,600) and as hours and minutes. The weekly timesheet adds one shift per line and splits the total into regular hours and overtime above a weekly threshold, 40 hours by default, the US Fair Labor Standards Act figure.
A night shift from 22:00 to 06:15 with a 45-minute break is 7.5 hours. The default week, four days of 09:00 to 17:30 and a Friday finishing at 17:00, each with a 30-minute break, comes to 39.5 hours.
One shift and Weekly timesheet use clock time. Choose Dates & time zone to measure actual elapsed time across midnight, multiple days or a daylight-saving change. A repeated clock time has two possible instants: choose its first or second occurrence. A skipped time is rejected so you can correct the recorded punch.
Hours worked are the end time minus the start time, less any unpaid break. On the 24-hour clock, 08:30 to 17:15 is 8 hours 45 minutes; less a 30-minute lunch, that is 8 hours 15 minutes, or 8.25 hours on a decimal timesheet.
Clock notation and decimal hours are two ways of writing the same amount: 8:15 is 8.25 hours, and 7:45 is 7.75 hours, not 7.45. Use the decimal figure when multiplying by a pay rate.
Pick the method that matches your record:
Tue 22:00-06:15 45; times such as 9am-5:30pm also work. Lines are counted by clock time, and the total is split at a weekly overtime threshold, 40 hours unless you change it.America/New_York, for shifts longer than a day or across a daylight-saving change.1h 15m, and can't be longer than the shift.For whole calendar dates rather than clock times, use the days between dates calculator.
For a shift from 08:40 to 17:15 with a 45-minute unpaid lunch, 15 − 40 is negative, so borrow an hour: 75 − 40 = 35 minutes, then 16 − 8 = 8 hours. The shift spans 8 hours 35 minutes, and less the break it is 7 hours 50 minutes.
As a decimal, 50 ÷ 60 = 0.8333, so the time worked is 7.83 hours. This last step is where pay goes wrong: at $18.50 an hour, 7.8333 hours earns $144.92, while reading 7:50 as 7.50 hours pays $138.75, $6.17 short for one day.
When the end time is earlier than the start, the shift finished the next day, so add 24 hours to the end time before subtracting. From 21:30 to 05:45 with a 30-minute break is (05:45 + 24:00) − 21:30 = 8 hours 15 minutes, less 30 minutes: 7 hours 45 minutes, or 7.75 hours.
Clock readings alone repeat every 24 hours, so 09:00 to 10:00 could mean 1 hour or 25. For a shift longer than a day, work from both dates.
When a shift crosses a clock change, the hours worked differ from the clock difference by the size of the change.
Work from the local date and time of each punch and the IANA name of the zone where they were recorded, such as America/New_York or Europe/London. A fixed abbreviation such as EST keeps one offset all year, while the city's clock changes.
Convert each punch to UTC and subtract the two instants. If the punches were made in different zones, convert both to UTC with the time zone converter first.
In New York in 2026, two overnight shifts that both read 23:00 to 07:30, with a 30-minute unpaid break, come out differently:
| Local dates | Clock difference | Actual elapsed time | Worked time after break |
|---|---|---|---|
| 7–8 March 2026 | 8 hours 30 minutes | 7 hours 30 minutes | 7 hours |
| 31 October–1 November 2026 | 8 hours 30 minutes | 9 hours 30 minutes | 9 hours |
These results match the US Department of Labor's daylight-saving shift example. Not every change is an hour: Lord Howe Island in Australia moves its clocks 30 minutes, so 00:00 to 04:00 there on 4 October 2026 is 3.5 hours.
A break is elapsed time too. If a break itself spans the clock change, subtract the time it actually lasted.
When clocks go back, one clock time happens twice. In New York on 1 November 2026, the first 01:30 is 05:30 UTC and the second is 06:30 UTC, so a shift from the first 01:30 to the second is one hour, though both punches read 01:30.
When clocks go forward, some times never happen: New York skips from 02:00 to 03:00 on 8 March 2026, so a punch recorded at 02:30 that day is an error to check against the original record, not a time to guess.
TC39's time-zone documentation explains the difference between exact instants and ambiguous local readings.
Clock-change rules come from the time-zone database in your browser. Governments can change future rules, so an older browser may hold older data, and leap seconds are not counted.
Payroll systems and many timesheets want hours as a decimal. Each minute is 1/60 of an hour, so divide the minutes by 60. The table rounds to two decimal places, the usual precision on a timesheet.
| Minutes | Hours | Minutes | Hours | Minutes | Hours |
|---|---|---|---|---|---|
| 1 | 0.02 | 21 | 0.35 | 41 | 0.68 |
| 2 | 0.03 | 22 | 0.37 | 42 | 0.70 |
| 3 | 0.05 | 23 | 0.38 | 43 | 0.72 |
| 4 | 0.07 | 24 | 0.40 | 44 | 0.73 |
| 5 | 0.08 | 25 | 0.42 | 45 | 0.75 |
| 6 | 0.10 | 26 | 0.43 | 46 | 0.77 |
| 7 | 0.12 | 27 | 0.45 | 47 | 0.78 |
| 8 | 0.13 | 28 | 0.47 | 48 | 0.80 |
| 9 | 0.15 | 29 | 0.48 | 49 | 0.82 |
| 10 | 0.17 | 30 | 0.50 | 50 | 0.83 |
| 11 | 0.18 | 31 | 0.52 | 51 | 0.85 |
| 12 | 0.20 | 32 | 0.53 | 52 | 0.87 |
| 13 | 0.22 | 33 | 0.55 | 53 | 0.88 |
| 14 | 0.23 | 34 | 0.57 | 54 | 0.90 |
| 15 | 0.25 | 35 | 0.58 | 55 | 0.92 |
| 16 | 0.27 | 36 | 0.60 | 56 | 0.93 |
| 17 | 0.28 | 37 | 0.62 | 57 | 0.95 |
| 18 | 0.30 | 38 | 0.63 | 58 | 0.97 |
| 19 | 0.32 | 39 | 0.65 | 59 | 0.98 |
| 20 | 0.33 | 40 | 0.67 | 60 | 1.00 |
Only multiples of 3 minutes come out exact at two decimals. The rest are rounded, and the rounding adds up: 7.83 hours at $18.50 is $144.86, six cents less than pay for the exact 7 hours 50 minutes.
Add up the minutes for the whole week and convert the total, not each day. To go the other way, multiply the decimal part by 60: 0.4 hours is 24 minutes.
Count only unpaid time as the break. If a shift has a 30-minute lunch and two paid 10-minute rest breaks, the break is 30 minutes; for a split lunch, add the pieces together.
Meal-break rules vary by state: California Labor Code §512 generally requires a meal period of at least 30 minutes for a work period of more than 5 hours a day, which employer and employee can waive by mutual consent when the day is no more than 6 hours. The section also sets exceptions and second-meal rules.
Many time clocks round punches to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter-hour. The US Department of Labor accepts that under 29 CFR 785.48(b) only if it averages out so that, over time, employees are paid for all the time they actually work.
To match a payslip, round the punches the way your employer's policy does before subtracting.
The US Fair Labor Standards Act requires employers to pay covered, non-exempt employees at least 1.5 times the regular rate for hours over 40 in a workweek (29 CFR 778.107; Fact Sheet #23). Two rules decide which hours count:
Five days of 08:00 to 17:30 with a 30-minute unpaid lunch make 9 hours a day and 45 hours a week: 40 regular hours and 5 overtime hours. At $22 an hour, pay is 40 × $22 = $880 plus 5 × $33 = $165, a total of $1,045.
The FLSA counts only weekly hours, but some states also set daily overtime. Under California Labor Code §510, work over 8 hours in a workday is paid at 1.5 times the regular rate and work over 12 hours at double, alongside the weekly 40-hour rule.
Four days of 07:00 to 17:30 with a 30-minute lunch total 40 hours, so a weekly threshold finds no overtime. Under California's daily rule, 2 hours of each 10-hour day are overtime, and at $22 an hour the week pays 32 × $22 + 8 × $33 = $968 instead of $880.
California's exceptions include certain alternative workweeks and collective agreements covered by §§511, 514 and 554. The timesheet split applies only a weekly threshold, so work out daily overtime line by line.
To add durations you have already measured, such as shifts worked out with dates across a clock change, use the time calculator. To turn an hourly rate into weekly or yearly pay, use the salary to hourly calculator.
Checked against: 8.5 h − 0.5 h = 8 h by hand
Checked against: 22:00 → 06:15 next day = 8 h 15 min; minus 45 min = 7 h 30 min = 27000 s, by hand
Checked against: 4 × (8.5 − 0.5) + (8 − 0.5) = 39.5 h by hand
Checked against: 11 + 9.5 + 9.25 + 9.25 + 4 = 43 h; 43 − 40 = 3 h overtime, by hand
Subtract the start time from the end time, take off any unpaid break, then turn the minutes into a fraction of an hour. 09:00 to 17:30 is 8 hours 30 minutes; less a 30-minute break it is 8 hours. 08:45 to 17:15 less 45 minutes is 7 hours 45 minutes, which is 7.75 hours on a timesheet that asks for decimals.
Add 24 hours to the end time before subtracting. From 22:00 to 06:15 the next day is (06:15 + 24:00) − 22:00 = 8 hours 15 minutes; with a 45-minute break that is 7 hours 30 minutes, or 7.5 hours. Enter the end time as it appears on the clock and the calculator adds the day itself.
Choose Dates & time zone and enter both dates and the zone where the punches were recorded. In New York, 23:00 on 7 March 2026 to 07:30 on 8 March, less a 30-minute break, is 7 worked hours. The equivalent shift on 31 October to 1 November is 9 hours. The calculator compares the actual instants and shows the clock-change adjustment; it does not assume every change is one hour.
For a repeated time, select First occurrence or Second occurrence separately for the start and end. On 1 November 2026 in New York, the first 01:30 to the second 01:30 is one elapsed hour. A time skipped by a forward change, such as 02:30 on 8 March 2026 in New York, is an input error; check the original record rather than inventing a time.
Under the US Fair Labor Standards Act, covered, non-exempt employees earn at least 1.5 times their regular rate for hours over 40 in a workweek, so a 43-hour week has 3 overtime hours. In the UK there is no automatic statutory overtime premium, though a contract may provide one and average pay must not fall below the National Minimum Wage. For adult workers the general limit is an average of 48 hours a week, normally over 17 weeks, with exceptions and possible voluntary opt-outs.
Short rest breaks usually do and meal breaks usually don't. US rules (29 CFR 785.18 and 785.19) count breaks of 5 to about 20 minutes as paid work time, while a meal period of ordinarily 30 minutes or more is unpaid if the employee is completely relieved from duty. In the UK adult workers are usually entitled to an uninterrupted 20-minute break when working more than 6 hours a day; exceptions apply and payment depends on the employment contract.
This calculator includes 8 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.