Skip to content

Daily overtime, double time and the seventh day (California style)

The rule

  • Hours past 8 in a workday are overtime; hours past 12 are double time.
  • On the seventh consecutive day worked in one workweek, the first 8 hours are overtime and every hour past 8 is double time.
  • Regular hours past 40 in a workweek are overtime. Hours already paid as daily overtime or double time are not counted toward the 40 again.

Who uses it

Employers of non-exempt staff in California, and employers elsewhere who pay daily overtime by contract or company policy (a collective agreement that pays time and a half past 8 hours, for example).

How the recipe does it

Configuration only: a package (package.toml) of one layer, paid on the 1st and 16th of the month, with three standard steps in this order.

[[layer]]
id = "overtime"
settings = { pay_periods = { month_days = [1, 16] } }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { window = "day", counts = ["work"], tiers = [{ over = "8h", to = "overtime" }, { over = "12h", to = "double_time" }] }
[[layer.step]]
id = "seventh"
uses = "standard/consecutive_day"
params = { day = 7, counts = ["work", "overtime"], tiers = [{ over = "0s", to = "overtime" }, { over = "8h", to = "double_time" }] }
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week", counts = ["work"] }
  • daily is a threshold with two tiers on each workday: time past 12 hours goes to double_time, then the regular time left past 8 to overtime, the latest first.
  • seventh runs on each workweek. On a day that is the seventh in a row with time worked in the week (days before the pay period are counted, never moved), its time is overtime from the first hour and double time past 8: its regular time and the overtime daily gave it are tiered again. The run starts afresh each workweek, so seven days in a row across the week’s start are no seventh day.
  • The weekly threshold counts only work, the regular time the two steps leave, so an hour is never overtime twice.

The order matters: each step works on what the one before it left.

Parameters

StepParameterMeaning
dailytiersEach tier’s over (hours in the day) and to (the category past it).
daily, weeklycountsThe categories counted: regular time only.
seventhdayWhich day of a run in the workweek is paid as the seventh (7).
seventhtiersOn that day, from its first hour (0s) and past 8 hours.
weeklyover, toRegular hours a workweek may have, and where the rest goes.

What the scenarios show

  • daily-past-eight-and-twelve: exactly 8 hours, 8 and a minute, exactly 12 and 13 hours in a day.
  • the-seventh-consecutive-day: seven days in a week; Sunday is overtime from its first hour and double time past 8, and the weekly threshold takes Saturday, not Sunday again.
  • six-days-is-no-seventh: six days with a day off is no seventh day.
  • a-seventh-day-in-the-next-pay-period: a workweek split by a pay date still finds its seventh day.

This is a common way companies implement California-style daily overtime; check the rules where you operate. Alternative workweek schedules, exempt staff and some industries follow other rules, and the workday and workweek are the ones the employer has set.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/california_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:

california_overtime/package.toml
name = "california_overtime"
version = "1.0.0"
description = "Overtime past 8 hours a day, double time past 12, the seventh consecutive day of a workweek at overtime, and weekly overtime past 40 without counting an hour twice."
# Paid on the 1st and 16th of the month. Each day, time past 8 hours is
# overtime and past 12 double time; the seventh consecutive day worked in
# a workweek is overtime from its first hour and double time past 8; then
# regular time past 40 hours a week is overtime. Each step counts only
# what the one before left regular, so no hour is overtime twice.
[[layer]]
id = "overtime"
settings = { pay_periods = { month_days = [1, 16] } }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { window = "day", counts = ["work"], tiers = [{ over = "8h", to = "overtime" }, { over = "12h", to = "double_time" }] }
[[layer.step]]
id = "seventh"
uses = "standard/consecutive_day"
params = { day = 7, counts = ["work", "overtime"], tiers = [{ over = "0s", to = "overtime" }, { over = "8h", to = "double_time" }] }
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week", counts = ["work"] }

Scenarios

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

Paid on the 1st and 16th, the workweek of October 12 starts in one pay period and ends in the next. Its seventh consecutive day, Sunday the 18th, is still found: the earlier period's days are counted, never moved
scenarios/a-seventh-day-in-the-next-pay-period.toml
description = "Paid on the 1st and 16th, the workweek of October 12 starts in one pay period and ends in the next. Its seventh consecutive day, Sunday the 18th, is still found: the earlier period's days are counted, never moved"
punch = [
{ at = "2026-10-12 08:00", kind = "in" }, { at = "2026-10-12 16:00", kind = "out" },
{ at = "2026-10-13 08:00", kind = "in" }, { at = "2026-10-13 16:00", kind = "out" },
{ at = "2026-10-14 08:00", kind = "in" }, { at = "2026-10-14 16:00", kind = "out" },
{ at = "2026-10-15 08:00", kind = "in" }, { at = "2026-10-15 16:00", kind = "out" },
{ at = "2026-10-16 08:00", kind = "in" }, { at = "2026-10-16 16:00", kind = "out" },
{ at = "2026-10-17 08:00", kind = "in" }, { at = "2026-10-17 16:00", kind = "out" },
{ at = "2026-10-18 08:00", kind = "in" }, { at = "2026-10-18 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect.period]
day = "2026-10-16"
first = "2026-10-16"
allocations = [
"2026-10-16 08:00-16:00 work 8.00",
"2026-10-17 08:00-16:00 overtime 8.00",
"2026-10-18 08:00-16:00 overtime 8.00",
]
Each day on its own: exactly 8 hours is all regular; 8 hours and a minute is a minute of overtime; exactly 12 is 8 regular and 4 overtime; 13 is 8, 4 and an hour of double time, the day's last
scenarios/daily-past-eight-and-twelve.toml
description = "Each day on its own: exactly 8 hours is all regular; 8 hours and a minute is a minute of overtime; exactly 12 is 8 regular and 4 overtime; 13 is 8, 4 and an hour of double time, the day's last"
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 06:00", kind = "in" }, { at = "2026-10-07 18:00", kind = "out" },
{ at = "2026-10-08 06:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect]
week = "2026-10-05"
worked = "41h 1m"
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 06:00-14:00 work 8.00",
"2026-10-07 14:00-18:00 overtime 4.00",
"2026-10-08 06:00-14:00 work 8.00",
"2026-10-08 14:00-18:00 overtime 4.00",
"2026-10-08 18:00-19:00 double_time 1.00",
]
Six days worked, Tuesday to Sunday, with Monday off: no seventh consecutive day in the workweek, so Sunday is paid as any day. The week's 48 regular hours pass 40, so Sunday's 8 are weekly overtime
scenarios/six-days-is-no-seventh.toml
description = "Six days worked, Tuesday to Sunday, with Monday off: no seventh consecutive day in the workweek, so Sunday is paid as any day. The week's 48 regular hours pass 40, so Sunday's 8 are weekly overtime"
punch = [
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
{ at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 16:00", kind = "out" },
{ at = "2026-10-11 08:00", kind = "in" }, { at = "2026-10-11 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect]
week = "2026-10-05"
worked = "48h"
allocations = [
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-09 08:00-16:00 work 8.00",
"2026-10-10 08:00-16:00 work 8.00",
"2026-10-11 08:00-16:00 overtime 8.00",
]
Seven days worked in one workweek: Sunday, the seventh, is overtime from its first hour and double time past 8. Monday to Saturday's 48 regular hours pass 40, so Saturday's 8 are weekly overtime; Sunday's are not counted again
scenarios/the-seventh-consecutive-day.toml
description = "Seven days worked in one workweek: Sunday, the seventh, is overtime from its first hour and double time past 8. Monday to Saturday's 48 regular hours pass 40, so Saturday's 8 are weekly overtime; Sunday's are not counted again"
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:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
{ at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 16:00", kind = "out" },
{ at = "2026-10-11 08:00", kind = "in" }, { at = "2026-10-11 18:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[expect]
week = "2026-10-05"
worked = "58h"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-09 08:00-16:00 work 8.00",
"2026-10-10 08:00-16:00 overtime 8.00",
"2026-10-11 08:00-16:00 overtime 8.00",
"2026-10-11 16:00-18:00 double_time 2.00",
]