How to Calculate Hours Worked (Timesheet Guide)

Freelancers billing clients, shift workers checking pay slips and small business owners running payroll all face the same task: turning start and finish times into total hours. Time does not work in tens like ordinary numbers, so it is easy to make mistakes – especially with minutes and breaks. Here is how to calculate hours worked accurately, including overnight shifts and converting to decimal hours for pay.

Screenshot of the Time Calculator on Assen Tools
The Time Calculator in use. Open the Time Calculator – free, no sign-up.

Step 1: Use the 24-hour clock

Convert times to 24-hour format to avoid AM/PM confusion: 1:30 pm becomes 13:30, 6:15 pm becomes 18:15.

Step 2: Subtract start from end

Example: start 08:30, finish 17:15.

Subtract hours and minutes separately. If the finishing minutes are smaller than the starting minutes, borrow an hour (60 minutes):

17:15 → 16:75 16:75 − 08:30 = 8 hours 45 minutes

Step 3: Subtract break time

If the worker took a 45-minute unpaid break:

8:45 − 0:45 = 8 hours 0 minutes

Step 4: Convert minutes to decimal hours

Pay rates are per hour, so convert minutes to a decimal by dividing by 60:

  • 15 minutes = 0.25 hours
  • 30 minutes = 0.5 hours
  • 45 minutes = 0.75 hours
  • 20 minutes ≈ 0.33 hours

So 7 hours 45 minutes = 7.75 decimal hours, not 7.45. This is the most common payroll mistake.

Pay example: 7.75 hours × ₦2,500 per hour = ₦19,375.

Night shifts that cross midnight

If someone starts at 22:00 and finishes at 06:00, add 24 hours to the finish time first:

06:00 + 24:00 = 30:00 30:00 − 22:00 = 8 hours

Weekly totals and overtime

Add each day's decimal hours for the weekly total on the timesheet. If your contract or local law sets a standard week – for example 40 hours – anything above it may count as overtime, often paid at a higher rate.

Example: 46 hours worked with a 40-hour standard and overtime at 1.5×: 40 × rate + 6 × rate × 1.5

Rounding policies

Some employers round to the nearest 5 or 15 minutes. Whatever policy you use, apply it consistently and make sure it is fair to both sides.

Doing it in a spreadsheet

In Excel or Google Sheets, enter times as times (08:30), then:

  • Hours worked: =(B2-A2)*24 gives decimal hours
  • Overnight: =MOD(B2-A2,1)*24

Convert the finished timesheet to a PDF for sending – see how to convert Excel to PDF.

Calculate instantly

The free Time Calculator adds and subtracts hours and minutes and converts between time and decimal hours, so timesheets add up first time.

Related tools:

Frequently asked questions

Is 8:30 to 5:00 eight and a half hours? Yes – 8 hours 30 minutes, or 8.5 decimal hours, before any break.

Should paid breaks be subtracted? No. Only subtract unpaid breaks.

How do I convert decimal hours back to minutes? Multiply the decimal part by 60: 0.6 hours = 36 minutes.

What if someone forgets to clock out? Agree the finishing time with them and record a note on the timesheet explaining the correction, so there is a clear record.

How do freelancers track billable hours? Log start and finish times for each task as you work, total them weekly and convert to decimal hours before invoicing at your hourly rate. Rounding to the nearest quarter hour is common, as long as you tell clients your policy.

Summary

Now you know how to calculate hours worked: use the 24-hour clock, subtract start from finish, deduct unpaid breaks, handle midnight by adding 24 hours, and convert minutes to decimal hours before multiplying by the pay rate. Get accurate totals every time with the free Time Calculator.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.