OPSX
Guide · 5 min read

Night shift attendance: counting a shift that crosses midnight

By , Founder & System Architect · Published

A 22:00 to 06:00 shift is one working day, and it belongs to the date it starts on. Write that rule down, set the system to follow it, and most night shift problems disappear: no split days, no false absences, no double counting in payroll.

The rule: the shift belongs to its start date

Say a guard comes in at 22:00 on Monday and leaves at 06:00 on Tuesday. That is Monday's shift. He was present on Monday, and Tuesday is a fresh day on which he may work again at 22:00.

The other choices cause trouble. Counting by end date makes the first night of the month vanish and puts the last night into next month's payroll. Splitting the shift at midnight turns one full day into two half days, and the employee looks half-absent twice.

Whichever rule you choose, use it for every report: attendance, overtime, leave and payroll. The errors start when the attendance sheet uses the start date and the salary sheet quietly uses the punch date.

How punches get matched to the right shift

A punch at 05:58 on Tuesday is the out-punch for Monday night, not an in-punch for Tuesday. Attendance software decides this with a window around each shift: punches that fall within a few hours of the shift start or end are tied to that shift.

  • Check the window on your systemAsk how far before and after a shift a punch is still accepted. Test it with a real overnight punch before the first payroll.
  • Missing out-punchIf the worker forgets to punch out at 06:00, the next punch is 22:00 the same day. A badly set system may pair them into a 24-hour shift. Flag missing out-punches for the supervisor each morning.
PunchClock dateBelongs toWhy
21:52 inMondayMonday night shiftClose to the 22:00 start
02:10 out and 02:40 inTuesdayMonday night shiftA break inside the shift
06:04 outTuesdayMonday night shiftClose to the 06:00 end
21:58 inTuesdayTuesday night shiftA new shift start

Late marks and half days at night

Late and early rules should be measured against the shift timing, not the calendar. A worker who arrives at 22:20 for a 22:00 shift is 20 minutes late, exactly as a day worker arriving at 09:20 would be. Use the same grace time for both, unless your policy says otherwise.

Half days need a clear threshold in hours worked, measured across midnight. Say your policy treats fewer than four hours as a half day. A worker who comes at 22:00 and leaves at 01:30 worked three and a half hours on Monday's shift, which is a half day for Monday, not a short Monday and an absent Tuesday.

Be careful with early leaving near the end. A night worker who leaves at 05:30 because the last bus to the village goes then should be handled through a written arrangement, not a monthly row of early marks that nobody acts on.

The weekly off after a night shift

This is where most disputes come from. A worker whose last night shift ends at 06:00 on Sunday has not had a day off on Sunday. He spent the morning recovering from work.

A simple way to see it: a weekly off should be a full rest period that is not eaten by the end of a shift. If the night shift's off day is Sunday, the shift starting Saturday at 22:00 should usually be his last before the off, and his next shift should start no earlier than Sunday at 22:00 or, better, Monday at 22:00. Decide which and write it in the roster.

The Labour Codes that came into force in November 2025 deal with working hours, rest and weekly holidays, and state rules are still being notified. Check the current requirements for night work and weekly rest with your CA or the labour department. Some rules for women working at night also carry conditions on consent, safety and transport, so check those too before you roster them.

Rotating shifts and the changeover day

When a crew moves from day shift to night shift, someone usually ends up working twice in one calendar day or missing a day on paper.

  • Day to nightA worker on 06:00 to 14:00 on Saturday who starts nights at 22:00 on Sunday has a clean break. Starting nights at 22:00 on Saturday would put two shifts on one date and leave little rest.
  • Night to dayA worker finishing nights at 06:00 on Sunday should not start days at 06:00 on Monday without the off day in between being a real one.
  • Publish the roster aheadPut the changeover on the notice board at least a week ahead, in Hindi if the crew reads Hindi, so nobody turns up for the wrong shift.

The usual payroll errors, and how to catch them

  • Days counted twiceOne night counted on both dates because in and out were treated separately. Compare days present with the roster for every night worker in the first month.
  • Days lostThe last night of the month pushed into next month. Check the night shift of the 30th or 31st each payroll.
  • Overtime split at midnightExtra hours after 06:00 belong to the night shift, not to a new day. They should be added to that shift's overtime.
  • Holiday pay on the wrong nightIf Holi falls on Tuesday, decide whether the Monday night shift or the Tuesday night shift gets holiday treatment, and write it in the policy.
  • Night allowance missedIf you pay a night allowance, tie it to the shift, not to punches after midnight, or a worker who punches in at 21:58 can lose it.

A short checklist before the first night payroll

  • One date ruleNight shifts belong to their start date, in every report.
  • Punch windows testedA real overnight punch pair lands on one shift.
  • Missing punches reviewed dailySupervisors close gaps each morning, not at month end.
  • Weekly off definedA full rest period, not the morning after a shift.
  • Changeover days on the rosterNo double shifts on one date.
  • Law checkedNight work, rest and weekly holiday rules confirmed with your CA under the new codes.

Where OpsX fits

Staff mark attendance on their phone, at a kiosk at the gate or on a biometric device. Shifts, rotating rosters, late marks, half days, overtime and leave are worked out for you, and the month closes straight into payroll. When the network drops, nothing is lost. See Attendance & Roster.

Questions

Which date should a 10 pm to 6 am shift be counted on?

The date it starts. A shift from 22:00 Monday to 06:00 Tuesday is Monday's attendance. Use the same rule in attendance, overtime and payroll.

Is the day after a night shift a weekly off?

Not if the shift ended that morning. A weekly off should be a full rest period. Check the current weekly rest rules under the Labour Codes with your CA.

What if a night worker forgets to punch out?

The next punch may be paired wrongly into one very long shift. Have the supervisor review missing out-punches every morning and correct them with a reason.

Should late marks at night use a different grace time?

Usually not. Measure lateness against the shift start time with the same grace as day shifts, unless your written policy gives a reason to differ.

Related product
Attendance & Roster →

No card needed. ₹0.75 per active employee per day after the 51-day free trial, billed monthly with a GST invoice.

More from OpsX