Rotating and night shifts without errors
How to design a rotation that covers the post, which day the hours of a shift that crosses midnight belong to, how to approve shift swaps and how to reach payroll with no surprises.
The night-shift guard clocks in on Monday at 21:56 and clocks out on Tuesday at 06:03. At month end, the attendance summary says he left his post early on Monday, arrived eight hours late on Tuesday and was absent on Wednesday. None of that happened. The problem isn’t the person or the biometric clock: it’s that nobody defined which workday each punch belongs to. And when that summary reaches payroll, the error turns into a deduction.
Rotating and night shifts are where attendance breaks most often. This guide organizes the topic in four steps: design the rotation, solve midnight, control shift swaps and close the summary before it touches payroll.
1. Design the rotation as a pattern, not as a calendar
A calendar built by hand month after month falls apart as soon as someone gets sick. A pattern is a short sequence that repeats: each day of the pattern says which schedule applies or whether it’s a rest day. Each person is assigned the same pattern with an offset (their “day zero”), and the post stays covered without redoing anything.
Suppose a 24/7 post with three 8-hour shifts: morning (M, 06:00–14:00), afternoon (A, 14:00–22:00) and night (N, 22:00–06:00). An 8-day pattern:
| Pattern day | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Shift | M | M | A | A | N | N | R | R |
With four people and offsets of 0, 2, 4 and 6 days, every shift on every day is covered by exactly one person. Each one works 6 out of every 8 days: 48 hours every 8 days, about 42 hours per week on average. Before adopting it, check those hours against the maximum working time set by the applicable rules and your internal regulations.
Three criteria for choosing the pattern:
- Forward rotation (morning → afternoon → night). Between one block and the next there are at least 24 hours; rotating backwards forces people to come in for the morning a few hours after leaving the night shift.
- Rest after the nights, not before. That’s when the body needs it most.
- Size it with absences in mind. Four people cover the ideal pattern, but not vacations or sick leave. How many extra people you need is explained in 24/7 post.
Exceptions (a day with another schedule, a training session) are recorded as an exception for that day and that person, without touching the pattern. That way it’s clear what the rule is and what was one-off.
2. Solve midnight: the workday rules, not the calendar
The rule that prevents almost every error is simple: hours belong to the workday on which the scheduled shift started, even if they end the next day.
| Punch | Calendar date | Workday it belongs to |
|---|---|---|
| In 21:56 | Monday | Monday (Monday’s N shift) |
| Out 06:03 | Tuesday | Monday (closes Monday’s N shift) |
To apply it you need:
- A schedule per person and per day stating that on Monday they had N from 22:00 to 06:00. Without it, no system knows that the 06:03 punch closes Monday.
- A grace window for assigning the clock-out to the previous workday. For example: “a clock-out up to 4 hours after the end of the night shift belongs to that shift”. Write it down, because it defines what happens when someone stays until 08:00.
- Calculate with full date and time, not with bare hours. “06:03 − 21:56” is negative if you only look at the time; with the date it’s 8 hours and 7 minutes.
With the workday properly built, the calculations follow. Suppose the clock-in tolerance is 10 minutes and your night window (the one defined by your rules or regulations) ends at 06:00:
- In at 22:20 → 20 minutes late on Monday’s workday (or 10, if your policy only deducts what exceeds the tolerance; decide and write it down).
- Out at 08:00 → 2 hours of overtime on Monday’s workday. Since they fall after 06:00, they are overtime but not night hours.
- Out at 05:00 → left 1 hour early, not an incomplete Tuesday workday.
One decision remains that isn’t technical: if the shift starts the day before a public holiday and ends within it, how many hours count as “holiday” hours? Define it with your accountant or labor adviser according to current rules and always apply it the same way.
3. Shift swaps: acceptance, approval and the real schedule
There will always be swaps between co-workers. The typical mistake is approving them “verbally” or with a form that doesn’t change the schedule: the one who rested shows up as absent and the one who covered shows overtime or lateness on a shift that wasn’t theirs.
A flow that works:
- Request: who asks, whom, which date and, if it’s an exchange, which date they give back.
- Co-worker acceptance: without their explicit yes there’s no swap. If they have no system access, HR records the acceptance signed on paper.
- Approval by the manager or HR, only for accepted requests.
- Checks before approving: that the person covering doesn’t end up with a double shift without authorization, that neither is on leave or vacation that date and that the month’s summary isn’t already closed.
- Real schedule change: the requester goes on rest and the co-worker takes their shift (and the other way round on the give-back date). From then on, the coverer’s lateness counts against the shift they took over.
- Reversal if the swap falls through, restoring the original schedules.
A useful figure: how many swaps are approved after the shift date. If there are many, the process is being used to cover up absences.
4. Close the summary before it reaches payroll
The monthly summary is the border between attendance and payroll. What gets confirmed there becomes deductions, overtime and premiums. Before confirming, check:
- Workdays with an odd number of punches (in without out or vice versa): each one is a misassigned night shift or a slip that has to be justified.
- Approved leave and vacations loaded: an unrecorded vacation day shows up as an absence and gets deducted.
- Holidays in the calendar before calculating, not after.
- Approved shift swaps reflected in the schedule.
- Manual corrections with a reason: who changed what, and what the previous value was.
- Night hours kept separate from day hours and from overtime, because payroll pays them with different concepts.
Two process rules prevent the worst problems:
- A confirmed summary isn’t silently recalculated. If it needs correcting, it’s reopened with authorization and a record is kept. Recalculating on top of what was already sent duplicates or deletes movements.
- It’s sent to the right month’s payroll, and only once. If that month’s payroll is already processed, the submission is rejected and someone decides what to do, instead of mixing it into the next month without anyone noticing.
Indicators
- Incomplete punches (%) = workdays with an odd number of punches ÷ scheduled workdays × 100. With well-configured night shifts it should approach zero.
- Manual corrections per 100 workdays. If it rises, the problem is in the schedule or the tolerance, not in the people.
- Swaps approved late (%) = swaps approved after the shift ÷ total swaps × 100.
- Summary–payroll differences: attendance movements that didn’t arrive or arrived twice. The target is zero.
Common mistakes
- Assigning punches by calendar date on shifts that cross midnight.
- Building the calendar by hand every month instead of a pattern with offsets.
- Approving shift swaps without changing both people’s schedules.
- Loading vacations after closing the summary.
- Editing a summary that was already sent without reopening it.
- Mixing ordinary night hours with night overtime.
Bringing it into a system
An ERP like MKA brings this method into its attendance module: N-day rotation patterns with each person’s offset and per-day exceptions; the clock-out of a night shift stays on the previous workday within a configurable grace window, and the summary calculates lateness, early departure, overtime and night hours per workday. A shift swap goes through the co-worker’s acceptance and approval, checks double shifts, leave and confirmed summaries, and actually swaps the schedules. Manual corrections keep the previous value, the confirmed summary is sent to the open monthly payroll of that month (to correct it you must reopen it) and payroll warns about days with more than 2 hours of overtime (LGT art. 50). You can see it in attendance.