Skip to content
Back to the blog

How to Calculate Working Hours: Formula and Examples (2027)

Calculate hours worked in three steps: end time minus start time, minus breaks, then add up the week. Overtime rules, examples and three free ways to track it.

Written by Viktor Várhegyi3 min read
How to Calculate Working Hours: Formula and Examples (2027)

To calculate your working hours, subtract your start time from your end time, then subtract your unpaid breaks. For example, 9:00 to 18:00 with a 30-minute break is 9 hours minus 0.5 hours, which is 8.5 hours worked.

Knowing the number is only half the value. The other half is knowing what the hours went into: which client, which project, which task. That is what lets you bill accurately, answer a client who asks where the time went, and see when it is time to hire.

The formula, step by step

  1. Write down your end time (for example 18:00 or 6 PM).
  2. Subtract your start time (for example 9:00 or 9 AM).
  3. Subtract unpaid breaks (for example 0:30 for a 30-minute lunch).
  4. Convert minutes to decimals if you bill by the hour: 15 minutes is 0.25, 30 minutes is 0.5, 45 minutes is 0.75.

Example: 18 - 9 - 0.5 = 8.5 hours.

Weekly hours and overtime

Add up the daily totals for the week. Anything above your contracted weekly hours is overtime. Overtime rules differ by country and contract, so check what applies to you before you calculate overtime pay.

Method 1: a spreadsheet

A simple sheet with start, end and break columns works for one person. The formula is end minus start minus break. The weak points: people forget to fill it in, typos go unnoticed, and it does not tell you what the time was spent on.

Method 2: a start/stop timer

A timer you start when you begin a task and stop when you finish records the exact duration and links it to the work. This is the most accurate method for billing and for understanding where time goes, because the hours are attached to a task, a project or a client from the start.

Method 3: a time tracker inside your project tool

If your tasks already live in a project management tool, tracking time there avoids a second app. The time sits on the task, and reports can be filtered by client and period.

How Gammatica tracks time

In Gammatica every task has a timer: start it, stop it, and the time adds up on the task, with every session kept as a separate entry. The time reports filter by period and client, and can be exported to CSV for billing. The Workload view shows who has too much on their plate over the next two weeks.

  • Project management: four views on the same tasks, a timer on every task and a Workload view
  • CRM software: see what is in the pipeline and what is stuck, without manual updates

Frequently Asked Questions

How do I calculate hours worked with a lunch break?

Subtract the start time from the end time, then subtract the unpaid break. 9:00 to 17:30 with a 30-minute lunch is 8 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 20 minutes is 0.33 hours, 45 minutes is 0.75 hours.

What is the most accurate way to track working hours?

A start/stop timer tied to the task you are working on, because it records the real duration and what it was spent on.

Can I track time per client?

Yes, if the timer is on a task linked to the client. Reports can then be filtered by client and exported for billing.

Done reading?

Gammatica takes 30 seconds to start, and no credit card.

Start free