Skip to content

Daily overtime in 24 hours from the start of work (Nevada style)

The rule

Daily overtime is usually counted per workday: midnight to midnight, or from the day’s set start. Nevada counts it differently: hours past 8 in any 24-hour period starting when the employee begins work. Work Monday from 08:00 to 16:00 and start again Tuesday at 06:00, and the 2 hours before 08:00 Tuesday fall in Monday’s 24 hours: they are overtime, though neither workday has more than 8 hours.

Who uses it

Employers in Nevada with employees covered by its daily overtime rule (those paid under one and a half times the minimum wage), and anyone whose contract counts the day from the start of work rather than the calendar: crews with rotating or early starts.

How the recipe does it

Configuration only: a package (package.toml) of one layer running the standard threshold step with a 24-hour window.

[[layer]]
id = "overtime"
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { over = "8h", to = "overtime", window = "24h" }

A step’s window "24h" (allocate steps only) runs it on 24-hour windows in place of workdays: each starts at the first timed line of worked time not in an earlier window, and lasts 24 hours; work going on as one ends starts the next. Lines across a window’s end are cut there, so each part is counted in its own. ctx.window has kind = "24h", start and end (its instants), and first and last (the workdays of its lines). Only timed lines are in a 24-hour window: hours entered without a time of day are not. Windows run on from the period’s first line and never reach into the period before.

Parameters

ParameterMeaning
over"8h".
window"24h".
toThe overtime category.

What the scenarios show

  • an-early-start-the-next-day: Monday 08:00 to 16:00 and Tuesday from 06:00: Tuesday’s 2 hours before 08:00 are overtime; the rest of Tuesday starts the next 24 hours.
  • same-start-every-day: with a fixed start each day the windows are the shifts: 8 hours regular, a minute more overtime; an overnight shift is one window, its ninth hour overtime.

This is a common way companies implement Nevada-style daily overtime; check the rules where you operate. Nevada’s rule has exemptions (some employees, alternative schedules agreed in writing, union agreements) and also counts weekly overtime; add standard/threshold with window = "week", counting only regular time, for that.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/nevada_daily_overtime. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.

The policy package

The package’s layers, with the standard steps each one runs and their settings:

nevada_daily_overtime/package.toml
name = "nevada_daily_overtime"
version = "1.0.0"
description = "Hours past 8 in the 24 hours from when work starts are overtime, so an early start the next day cannot hide a long day."
# Time past 8 hours in any 24 hours from the start of the work is
# overtime.
[[layer]]
id = "overtime"
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { over = "8h", to = "overtime", window = "24h" }

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

Monday 08:00 to 16:00, then Tuesday from 06:00: the 24 hours from Monday's start run to Tuesday 08:00, and hold Monday's 8 hours and Tuesday's first 2: those 2 are overtime, though neither workday has more than 8 hours. Tuesday from 08:00 starts the next 24 hours: its 6 hours are regular
scenarios/an-early-start-the-next-day.toml
description = "Monday 08:00 to 16:00, then Tuesday from 06:00: the 24 hours from Monday's start run to Tuesday 08:00, and hold Monday's 8 hours and Tuesday's first 2: those 2 are overtime, though neither workday has more than 8 hours. Tuesday from 08:00 starts the next 24 hours: its 6 hours are regular"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 06:00", kind = "in" }, { at = "2026-10-06 14:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-06 06:00-08:00 overtime 2.00",
"2026-10-06 08:00-14:00 work 6.00",
]
The same start each day, 08:00: each 24 hours holds one shift, as a workday would. 8 hours is regular; 8 hours and a minute is a minute of overtime, its last. An overnight shift from 22:00 to 07:00 is one 24 hours, its last hour overtime, whatever workdays it runs across
scenarios/same-start-every-day.toml
description = "The same start each day, 08:00: each 24 hours holds one shift, as a workday would. 8 hours is regular; 8 hours and a minute is a minute of overtime, its last. An overnight shift from 22:00 to 07:00 is one 24 hours, its last hour overtime, whatever workdays it runs across"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 16:01", kind = "out" },
{ at = "2026-10-07 22:00", kind = "in" }, { at = "2026-10-08 07:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-06 16:00-16:01 overtime 0.01",
"2026-10-07 22:00-2026-10-08 06:00 work 8.00",
"2026-10-08 06:00-07:00 overtime 1.00",
]