To calculate hours worked, take the finish time minus the start time, then subtract any unpaid break, and write the answer as a decimal (7 hours 30 minutes = 7.5 hours). Add up the days for the week. Overtime is the part above the limit that applies to you: per day (for example over 8 hours) or per week (in the US, over 40 hours). Multiply regular hours by your hourly rate and overtime hours by the overtime rate. Our free weekly timesheet template does all of this in Excel, including night shifts.
Calculate hours worked by hand
- Write both times on a 24-hour clock. 9:00 AM stays 9:00; 5:30 PM becomes 17:30. This removes AM/PM mistakes.
- Subtract start from finish. 17:30 − 9:00 = 8 hours 30 minutes. If the minutes don't subtract (17:10 − 8:45), borrow an hour: 16:70 − 8:45 = 8:25.
- Take off unpaid breaks. 8:30 − 0:30 lunch = 8:00 hours. Paid breaks stay in.
- Turn minutes into a decimal: divide the minutes by 60. 8 hours 25 minutes = 8 + 25 ÷ 60 = 8.42 hours.
The last step matters most. A common payroll mistake is to read 8:25 as 8.25 hours: that underpays 10 minutes, because 0.25 of an hour is 15 minutes, not 25.
Minutes to decimal hours
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 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 |
A worked week, step by step
Here is one week with a daily overtime limit of 8 hours, a rate of 10 an hour and overtime paid at 1.5×. Thursday is a night shift that ends after midnight.
| Day | Start | Finish | Unpaid break | Hours worked | Overtime (over 8) |
|---|---|---|---|---|---|
| Monday | 9:00 | 17:30 | 30 min | 8.00 | 0.00 |
| Tuesday | 8:45 | 17:10 | 30 min | 7.92 | 0.00 |
| Wednesday | 9:00 | 19:15 | 45 min | 9.50 | 1.50 |
| Thursday | 22:00 | 6:00 | 30 min | 7.50 | 0.00 |
| Friday | 9:00 | 18:00 | 60 min | 8.00 | 0.00 |
| Total | 40.92 | 1.50 |
Pay: regular hours 40.92 − 1.50 = 39.42 × 10 = 394.20. Overtime 1.50 × 10 × 1.5 = 22.50. Total 416.70. The night shift is worked out as 24:00 − 22:00 = 2 hours before midnight, plus 6 hours after, minus the break: 7.5 hours.
The same week counted the US way (overtime only over 40 hours in the week) gives 0.92 overtime hours instead of 1.50. That is why you need to know which rule applies before you add anything up.
How to calculate hours worked in Excel
Excel stores a time as a fraction of a day (12:00 is 0.5), so you multiply by 24 to get hours. Put the start time in C2, the finish in D2 and the unpaid break in minutes in E2:
| What you want | Formula |
|---|---|
| Hours worked, same day | =(D2-C2)*24-E2/60 |
| Hours worked, also across midnight | =MOD(D2-C2,1)*24-E2/60 |
| Daily overtime over 8 hours (hours in F2) | =MAX(0,F2-8) |
| Weekly overtime over 40 hours (days in F2:F8) | =MAX(0,SUM(F2:F8)-40) |
| Pay with overtime (rate in B1) | =(F9-G9)*B1+G9*B1*1.5 |
- Type times with a colon (9:00, 17:30 or 5:30 PM) so Excel reads them as times, not numbers.
- Format the hours cells as Number, not Time. If you keep a total as a time instead, use the custom format
[h]:mm; plainh:mmstarts again at zero after 24 hours, so a 41-hour week would show as 17:00. - MOD(…,1) is what fixes night shifts: 6:00 − 22:00 is negative, and MOD turns it into the 8 hours that really passed.
The timesheet template uses exactly these formulas. You fill in the hourly rate (cell B6), when overtime starts in hours per day (B7, 8 by default) and the overtime rate (B8, 1.5 by default). If your overtime is counted per week, replace the daily overtime formula in column G with the weekly one above.
When overtime starts: the rules in four countries
Your contract can be more generous than the law, never less. These are the legal minimums as the official sites describe them:
| Country | When it is overtime | Minimum overtime pay |
|---|---|---|
| United States (federal law, FLSA) | Hours over 40 in a fixed workweek of 168 hours. Federal law has no daily limit and no extra pay for weekends or holidays as such; some states add daily rules. | At least 1.5× the regular rate |
| United Kingdom | Set by the contract | No legal right to overtime pay, but average pay for all hours in the pay period must not fall below the National Minimum Wage |
| Saudi Arabia | Hours above the standard working hours; all work on public holidays counts as overtime. Overtime may not exceed 720 hours a year unless the worker agrees. | The hourly wage plus 50% of the basic wage for each hour (or paid time off instead, if the worker agrees) |
| United Arab Emirates (private sector) | Over 8 hours a day or 48 a week; overtime may not exceed 2 hours a day. Hours are 2 fewer a day in Ramadan. | Normal pay plus 25%, or plus 50% between 10 pm and 4 am (not for shift workers). Work on a rest day: a substitute day off, or normal pay plus 50%. |
Sources: US Department of Labor, Fact Sheet #23; GOV.UK, Overtime: your rights and Employers and the minimum wage; Saudi Ministry of Human Resources, Overtime Hours; UAE Government, Working hours and overtime (all read December 2026). Rules change and have exceptions (managers, part-time staff, shift work), so check your contract or ask the labour office if a lot of money depends on it.
In Saudi Arabia the 50% premium is worked out on the basic wage, not the total with allowances, so keep your basic salary at hand. The same basic wage also drives end-of-service pay: see the Saudi end-of-service calculator, or the UAE gratuity calculator in the Emirates.
Keep a clean record
- Write times down the same day. A timesheet filled in on Friday from memory is where most disputes start.
- Round the same way every time, if your employer rounds at all (for example to the nearest 5 or 15 minutes), and note the rule on the sheet.
- Get it signed. The template has signature lines; save it as a PDF with Excel to PDF and sign it with Sign PDF if your manager approves by email.
- Days present, not hours? For a whole team's present/absent/leave days, the attendance sheet template is the better fit. To see how the hours turn into a payslip, there is a salary slip template too.
Frequently asked questions
How do I calculate hours worked with a lunch break?
Subtract the break only if it is unpaid. 8:00 to 16:30 with an unpaid 30-minute lunch is 8.5 − 0.5 = 8 hours. A paid break stays in the total.
How do I convert 7 hours 45 minutes to decimal?
Divide the minutes by 60: 45 ÷ 60 = 0.75, so 7 hours 45 minutes is 7.75 hours. Multiply that by your hourly rate to get the pay.
Why does Excel show a negative or ##### for a night shift?
Because the finish time (say 6:00) is smaller than the start (22:00). Use =MOD(D2-C2,1)*24 instead of =(D2-C2)*24; MOD adds the missing day.
Is overtime counted per day or per week?
It depends on the law and your contract. US federal law counts per week (over 40 hours); the UAE counts hours over 8 a day or 48 a week; many contracts elsewhere say per day. Use the one in your contract and the template's daily or weekly formula to match.


