How to calculate employee working hours

06.09.2026
How to calculate employee working hours

Calculating working hours involves more steps than it appears: taking the records, deducting the break, separating lateness, calculating overtime and accounting for exceptions. For one employee this is a few minutes of work; for a hundred employees it becomes an operation that stretches over days at month end. This guide breaks the logic down step by step and points out the cases most often missed.

The steps of the calculation

  1. The entry and exit records are taken. There may be several pairs in one day.
  2. The raw duration is derived. Exit time minus entry time.
  3. The break rule is applied. Deducted or retained according to the policy.
  4. The result is compared with the schedule. Lateness and early leaving are separated.
  5. Overtime is calculated. The portion above the daily norm.
  6. Exceptions are added. Business trips, time off, leave.

Each of these six steps requires a rule. When the rules are unwritten the calculation becomes a matter of personal judgement and results differ between departments.

The break question

This is the most disputed point. Three approaches exist:

  • Fixed deduction - one hour is removed from every day regardless of records.
  • Recorded - the start and end of the break are captured.
  • Included in working time - nothing is deducted because the employee stays on site.

All three are correct - what is wrong is failing to write the choice down. One approach must be selected and applied identically across the company.

Night shifts

The night shift is the classic case that breaks a calculation: entry at 22:00, exit at 06:00. A simple formula returns a negative number because the date has changed. The correct approach is to treat the shift as a single whole and assign it to the day it started on. This case is covered on the night shift working time page.

A sample calculation

DayInOutRawBreakActualNote
109:0518:008:551:007:555 min late
208:5819:2010:221:009:221:22 overtime
309:00---?No check-out

The third row matters: what should the system do with an incomplete record? Two rules are possible - count the day according to the schedule, or flag the row for correction. The first is convenient, the second is accurate. In practice the second is chosen.

The risks of manual calculation

  • A broken formula in one cell corrupts the whole column without being noticed.
  • Time stored as text makes the total come out as zero.
  • The rounding rule is applied inconsistently.
  • When several people edit the file, the final version gets lost.

These risks are manageable up to twenty or thirty people; beyond that, finding an error takes longer than the calculation itself.

A practical example

At a restaurant chain the hours were calculated by the managers. Each site had its own sheet, and one deducted the break while another did not. As a result two people in the same role could differ by as much as twenty hours a month.

When the difference appeared in pay, complaints followed. The investigation found no technical error - each manager calculated as they understood it, because there was no written rule.

The solution had two parts: the rule was written on one page and the calculation was moved into the system. After that the difference depended only on the hours actually worked.

What automatic calculation changes

In an automated calculation the rule is defined once and applied identically to every row. That gives three benefits: results become comparable, the month-end workload disappears, and in a dispute the record behind every figure can be shown.

The rounding rule

A rarely discussed element with a real effect on the outcome is rounding. Three approaches are used: minute precision, five-minute steps and fifteen-minute steps.

Minute precision is the most transparent but makes the report look untidy. A fifteen-minute step is convenient, on one condition: rounding must be applied identically in both directions. Rounding arrivals up and departures down works systematically against the employee and is rightly seen as unfair.

A practical recommendation: announce the rounding rule in writing and illustrate it with an example. That removes most of the end-of-month questions.

Calculating overtime

Overtime is the most contested part of the calculation because it contains two separate questions: when does it start, and how is it paid?

The starting point comes from the schedule: does it begin when the daily norm is exceeded, or the weekly norm? The two approaches give different results. For someone working ten hours one day and six the next, a daily calculation produces two hours of overtime while a weekly one produces none.

The second question is approval: is every extra hour counted automatically, or must it be agreed in advance? An approval requirement gives budget control, but it has to be reflected in the system - otherwise the employee works the extra hours and only later discovers they are unpaid.

The model that works in practice: all overtime is recorded, while payment follows approval. Nothing is lost and the decision is documented.

Verifying the calculation

When moving to a new calculation rule, a simple check in the first month is worthwhile. Five profiles are selected: standard pattern, shift pattern, flexible pattern, an employee with heavy overtime and one with many exceptions.

Their month is calculated by hand and compared with the system's output. If there is a difference, the cause is almost always an incompletely written rule rather than the calculation logic.

The check takes a few hours but builds confidence for the months that follow: once the result has been confirmed, the report stops being a subject of argument.

Calculation for remote and field work

For employees working away from the office the calculation logic changes, because entry and exit are no longer tied to a physical site.

In field work the most practical model is multi-point recording: the employee checks in on arriving at a site and on leaving it. Several pairs of records appear during the day and the calculation joins them in sequence.

A new question arises here: does travel time between sites count as working time? The answer is the company's decision, but it must be written - in practice movements during the working day are usually included.

For remote work the record marks the start and end of the working day. The essential rule is that the concepts of norm and overtime must be preserved; otherwise the working day becomes unbounded.

In both cases the calculation logic should be built on a template different from the office pattern.

In summary

Most errors in calculating working hours come not from arithmetic but from unwritten rules. Breaks, the lateness threshold, rounding, when overtime starts and incomplete records - these five points belong on a single page.

Once the rules are written, automating the calculation becomes a technical matter and the results are produced by the same logic in every department. That secures both payroll accuracy and the sense of fairness within the team.

The next step

The simplest way to verify a calculation is to compute one employee's month twice - with the existing sheet and with the system rule - and compare. Any difference usually comes from the break or overtime rule.

QRGate lets you define the rules once and apply them to every employee. See what QRGate can do or calculate the price.

Related pages

Frequently asked questions

What are the steps of the calculation?
Records are taken, the raw duration is derived, the break rule is applied, the result is compared with the schedule to separate lateness, overtime is calculated against the norm, and exceptions such as business trips are added. Each step needs a written rule.
How should hours be rounded?
Any step - one, five or fifteen minutes - works, on one condition: rounding must be applied identically in both directions. Rounding arrivals up and departures down works systematically against the employee and is rightly seen as unfair.
How do you verify a new calculation rule?
Pick five profiles - standard, shift, flexible, one with heavy overtime and one with many exceptions - calculate their month by hand and compare with the system. Any difference almost always comes from an incompletely written rule, not from the calculation itself.
Can shift and flexible schedules use the same calculation logic?
No. Standard, flexible and night-shift patterns should be set up as separate schedule types, because the norm and the definition of lateness differ in each. Applying one logic to all of them is among the most error-prone shortcuts.
How do public holidays and non-working days enter the calculation?
The production calendar and the holidays have to be entered in advance, otherwise those days are read either as absence or as overtime. With the calendar in place the norm forms correctly on its own and the need for month-end corrections drops.