InnerWeb
Skip to main content

Night shift across midnight in working time records

A shift that starts at 00:30 and ends after the exit the next day breaks the assumption that a working day fits within one calendar day. This scenario shows how the working time record counts night minutes, monitors rest periods and what reaches HR.

330 min
night minutes in the example shift 00:30-08:30
Source: example calculation
11 h
daily rest under the Labour Code

Situation: an employee starts the shift at 00:30

The scenario describes a production plant with continuous operation. An employee enters the site at 00:30, works through the night, and scans the exit in the morning. The HR officer must answer three questions: how many of those hours were night hours, whether the rest after the previous shift was sufficient, and which day the record belongs to.

In a spreadsheet, each of these questions requires a separate formula and manual checking. In the InnerWeb working time module, the answer follows from the scans: the entry and exit recorded at the gate form the record, and the module counts the working minutes in the night period 22:00-06:00 and passes them to the HR export column.

Numerical example, minute by minute

Assume an example: entry at 00:30, exit at 08:30 on the same calendar day, with no breaks excluded from working time. Total presence is 8 hours, or 480 minutes. The night period in the module settings runs from 22:00 to 06:00.

The night part is the interval from 00:30 to 06:00, which is 5 hours 30 minutes, or 330 minutes. The day part is the interval from 06:00 to 08:30, which is 150 minutes. The sum of 330 plus 150 gives 480 minutes, which confirms the cross-check. The value 330 minutes goes to the HR export in the night hours column.

If the same person started at 21:00 and worked until 05:00, the night part would count from 22:00, which is 7 hours. The boundary of the night period is therefore always the boundary of the setting, not the boundary of the shift.

Split of the 480-minute shift 00:30-08:30

Split of the 480-minute shift 00:30-08:30Donut chart: 330 minutes worked in the night period and 150 minutes in the day period.Night period 00:30-06:00: 330 min (68.8%)Day period 06:00-08:30: 150 min (31.2%)480minNight period 00:30-06:00330 min (68.8%)Day period 06:00-08:30150 min (31.2%)
Source: Example calculation: entry 00:30, exit 08:30, night period 22:00-06:00

Daily rest: when the system warns

The Labour Code (Kodeks pracy) guarantees an employee 11 consecutive hours of daily rest (art. 132) and 35 hours of weekly rest (art. 133). The module warns about a breach of daily rest below 11 hours, weekly rest below 35 hours, and about exceeding the weekly norm.

In our example, let us check the previous shift: if the employee left the plant at 16:00 and the new shift starts at 00:30, the break lasted 8 hours 30 minutes. That is less than 11 hours, so the supervisor will see the record in the rest breach queue. The warning does not decide on fault: it shows that the rota or the shift swap needs explaining.

Which day the cross-midnight shift belongs to

This is an organisational decision for the plant, which should be written into the work rules and the HR policy before the first employee starts a night shift. One rule is applied everywhere: the shift belongs to the day on which it started, or to the day on which it ended. Mixing both rules in different departments produces discrepancies in monthly reports.

We recommend checking on several real cases how the chosen rule affects the number of hours on the first and last day of the settlement period, because that is where errors most often appear.

What HR does when closing the period

Before closing the period, HR checks the exception queues: missing exit, changed exit, declared time and rest breaches. The settlement period can be closed and reopened, and only the HR or administrator role can perform this operation.

The working time card is available as a PDF, so HR can attach it to the employee's file. Only the number of hours and days per employee and pay component goes to the client's payroll system, without rates or amounts. This scope was agreed at the offer stage; the rota screens, the HR tabs and the export to ERP are described as a development option, not as a ready standard.

Conclusions

A shift across midnight stops being a problem when the record is based on scans rather than on hours typed in by hand. Three decisions matter before the start: the boundaries of the night period in the settings, the rule for assigning the day, and the person responsible for the rest breach queue.

The module supports the obligation to keep working time records (Labour Code (Kodeks pracy) art. 149 section 1) and provides evidence for an audit, but it does not replace HR decisions and does not calculate pay.

Before the first settlement, run a trial on a period that is already closed: take a few real shifts across midnight, calculate the night minutes by hand and compare with the module result. Agreement in several cases gives the HR officer confidence that the night period settings and the day assignment rule work in line with the plant's work rules.

Example calculation

Night minutes of a shift from 00:30

Assumptions
ParameterValue
Entry00:30 hour
Exit08:30 hour
Night period in settings22:00-06:00 hours
Excluded breaks0 min

Result: 330 night minutes plus 150 day minutes gives 480 minutes of presence.

Note: Example calculation based on the assumptions above; the plant's rules may provide for breaks excluded from working time.

Video

Frequently asked questions

Are night minutes counted by hand?

No. The module counts the working minutes in the night period 22:00-06:00 and passes them to the HR export column.

What does the supervisor see when the rest is too short?

The record goes to the rest breach queue when the break is shorter than 11 hours per day or 35 hours per week.

Do the night hour rates go to the ERP?

No. The client's payroll system receives only the number of hours and days per employee and pay component, without rates or amounts.

Sources

Check your night shift on an example

We will recalculate a few real shifts across midnight with you and show what reaches the night hours column. Book a call with the InnerWeb team.

Let's talk