> For the complete documentation index, see [llms.txt](https://help.allwage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.allwage.com/modules/time-and-attendance/night-shifts-and-extended-days.md).

# Night Shifts & Extended Days

How AllWage handles shifts that run across midnight: extended days, night-shift breaks around midnight, and the Night Shift switch on a day with an hours override.

This section explains how AllWage handles shifts that cross from one calendar day into the next — for example a night shift that starts in the evening and ends the following morning. If you run night shifts, this is how the system keeps each shift's hours together on a single day.

## How the day boundary works

In AllWage, each day runs from **midnight to midnight**. Every clock-in and clock-out belongs to the calendar day it physically happened on.

We keep the day boundary fixed at midnight on purpose. A simple, predictable day makes it easy to spot problems — a missing clock-in, a forgotten clock-out, or a shift that doesn't look right. If the boundary moved around from one employee to the next, those exceptions would be much harder to see and trust.

{% hint style="info" %}
**Why don't we shift the day for night-shift workers?**

In the past, some systems tried to handle night shifts by moving the start of the day earlier (for example, starting the "day" at 18:00 so a night shift fell inside one block). This created more problems than it solved: it made reports inconsistent between day and night workers, broke as soon as someone's hours fell outside the assumed window, and made missing clocks very hard to detect.

Instead, AllWage keeps the day fixed at midnight for everyone and handles night shifts with the two mechanisms below — **extended days** and **continuous night shifts across breaks**. This keeps reporting consistent for every employee while still counting each night shift correctly.
{% endhint %}

## Extended days

A fixed midnight boundary raises one obvious question: what about a shift that is *still in progress* when midnight passes?

When an employee clocks in before midnight and works straight through into the next morning, AllWage automatically keeps the whole stretch together as **one shift on the day it started**. This is called an **extended day**.

For example, an employee clocks in at 18:00 and clocks out at 05:00 the next morning. Rather than showing this as a missing clock-out on the first day and a stray clock-out on the second, the system recognises it as one continuous shift and calculates the total hours across the two calendar days.

Extended days are flagged on both the **Employee Overview report** and the **Time & Attendance dashboard** so you can easily see which shifts crossed midnight. On the dashboard, the clock-out time is annotated with a **(+1)** to show it happened on the next day.

{% hint style="success" %}
An extended day is applied automatically when:

* The employee's last action on the day is a **clock-in** (there is no clock-out yet on that day), and
* The next day starts with a **clock-out**, and
* That clock-out is **less than 27 hours** after the day's first clock-in (so an employee is never credited with an impossibly long single shift).
  {% endhint %}

{% hint style="info" %}
**The Extended Day tag only appears on Start & End Times shifts.**

If your clock template is a **Fixed Duration** shift, a shift that runs past midnight is still recognised as a night shift and its hours are counted correctly — but the **Extended Day** tag is not shown against it.

This is intentional. Fixed Duration templates are most often used for night shifts, so tagging every one of them cluttered the report without adding any information. If you want the Extended Day tag to appear, use a **Start & End Times** template.
{% endhint %}

## Night-shift breaks around midnight

Extended days handle a shift worked *straight through* midnight. But night-shift employees often take a break around midnight — a meal break or a short rest — and clock out and back in while doing so.

AllWage treats a short break around midnight as **part of the same shift**, not the end of one shift and the start of another. As long as the employee clocks back in within **120 minutes** of clocking out, the system keeps the whole night as **one continuous shift on the day it started**, with the break excluded from worked hours.

This applies to both common patterns:

* **A break taken after midnight** — the employee works past midnight, then clocks out for a break in the early hours and clocks back in shortly after.
* **A break straddling midnight** — the employee clocks out *before* midnight and clocks back in *after* midnight. This is common for teams working to an overseas time zone, where the meal break naturally falls right around 00:00.

If there are several short breaks around midnight, each one is treated the same way, so the shift stays together as a single day rather than being chopped into pieces.

### Worked example

A night shift runs from 22:00 to 06:00, and the employee takes a 30-minute break at 01:00:

| Action            | Time  | Calendar day |
| ----------------- | ----- | ------------ |
| Clock in          | 22:00 | Day 1        |
| Clock out (break) | 01:00 | Day 2        |
| Clock in (resume) | 01:30 | Day 2        |
| Clock out (end)   | 06:00 | Day 2        |

AllWage records this as **one shift on Day 1: 22:00 → 06:00**, with a 30-minute break in the middle. The break time is not counted, so the worked hours are 7h30m.

{% hint style="info" %}
The break time between clocking out and clocking back in is **unpaid** and is not included in the worked hours — only the time actually clocked in counts.
{% endhint %}

## When does a new shift start instead?

The system needs to tell the difference between a *break* (same shift continues) and the *end of a shift* (a genuinely new shift later on).

The rule is the length of the gap:

* If the employee clocks back in within **120 minutes** of clocking out, it's treated as a **break** and the shift continues.
* If the gap is longer than 120 minutes, the shift has **ended**. The later clocks start a new, separate day.
* After a break around midnight, if the employee has two clock-ins **more than 5 hours** apart with no clock-out between them, the later clock-in starts a new day. This only applies to clocks that are being kept with the night before. During an ordinary day, a new clock-in without a clock-out just changes the activity.

There is also a sensible upper limit on how long a single shift can run: **27 hours** from the first clock-in. A long chain of short breaks can never stretch one "shift" on indefinitely — once a shift reaches 27 hours, any further clocks start a new day.

{% hint style="success" %}
The 120-minute limit comfortably covers normal break patterns. If your operation has unusual break arrangements around midnight, contact AllWage support so we can advise on the best clock template setup.
{% endhint %}

## Public holidays and Sundays

Because the whole shift is kept on the day it started, it also takes that day's status. A night shift that starts on a normal day and runs into a public holiday is a normal day's shift. A night shift that starts on a public holiday is a public holiday shift, including the hours after midnight. The same applies to Sundays. See [Which day a shift belongs to](https://help.allwage.com/modules/time-and-attendance/how-hours-are-calculated.md#which-day-a-shift-belongs-to), which also explains where this differs from the BCEA.

## Night shifts on a day with an override

On a day with hours in an override, only the override's **Night Shift** switch decides whether the day counts as a night shift. The day's clocks, and the clock template's [night shift window](https://help.allwage.com/modules/time-and-attendance/configuration.md#night-shift-window), don't.

A day with a missing clock-in or clock-out never shows as a night shift. So when you add an hours override on such a day, check the **Night Shift** switch, and switch it on if the employee worked a night shift.

This only applies to an override with hours. An override with no hours, for example one that only sets the **Public Holiday** field, leaves the day's clocks deciding: on a day with a clock-in and a clock-out, the clocks and the night shift window decide whether the day is a night shift, and the override's **Night Shift** switch is ignored.

## Where you'll see this

**Employee Overview report** — shifts that cross midnight show an [**Extended Day**](https://help.allwage.com/modules/time-and-attendance/reports/employee-overview.md#exceptions) indicator next to the day's hours. Open the timeline details (the three dots) to see the full shift, including any break around midnight.

<figure><img src="https://4190935239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQs9GZ7QOfs5wHesuQLQh%2Fuploads%2Fgit-blob-7fcbf0b0be7ee79b29cc37320c581461f08c2871%2Fextended-day-indicator.png?alt=media" alt=""><figcaption><p>An icon appears next to the hours for the day if it was an extended day. Click on the three dots to view the timeline details for the employee.</p></figcaption></figure>

**Employee Timeline** — inside the timeline, the [records for the day](https://help.allwage.com/modules/time-and-attendance/reports/employee-overview.md#records-for-the-day) show the date as well as the time whenever a record falls on a different calendar day to the one you are viewing. A night shift therefore reads exactly as it happened: the clock in on the first day showing only its time, and the clock out on the following day carrying that next date. This is the quickest way to confirm a shift genuinely crossed midnight, rather than an early-morning clock having been recorded by mistake.

<figure><img src="https://4190935239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQs9GZ7QOfs5wHesuQLQh%2Fuploads%2Fgit-blob-126fbd082e7316af8822ba2540774bf652425461%2Fnext-day-indicator.png?alt=media" alt=""><figcaption><p>Another day badge indicating it falls on the next day.</p></figcaption></figure>

**Time & Attendance dashboard** — extended days are flagged, with a **(+1)** on the clock-out that lands on the next day.

<figure><img src="https://4190935239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQs9GZ7QOfs5wHesuQLQh%2Fuploads%2FWAa1BJ6y7yIhVAr0Fq0Z%2Fimage.png?alt=media&amp;token=96f5ee90-cf3a-4c14-abcb-3073f2c4fdb4" alt=""><figcaption><p>Dashboard — the last icon represents extended days for 2 employees on the 16th of September.</p></figcaption></figure>

<figure><img src="https://4190935239-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQs9GZ7QOfs5wHesuQLQh%2Fuploads%2Fevs3kRG4qNs1jlGphSjL%2Fimage.png?alt=media&amp;token=1f51ca33-e84f-45df-99f4-a1c409030c85" alt=""><figcaption><p>The clock-out is annotated with a (+1) to indicate that it falls on the next day.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.allwage.com/modules/time-and-attendance/night-shifts-and-extended-days.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
