Skip to content

Split shift premium

The rule

A split shift is a workday broken by an unpaid stretch longer than a meal break: work in the morning, a few hours off, then work again in the evening. Each workday with one pays a premium, once: here an extra hour. A gap of exactly an hour is not a split, and a punched meal is a meal, not a gap.

Who uses it

Restaurants and hotels (lunch and dinner service), school bus and transit drivers, home care: anyone who staffs two peaks of a day with the same people. California requires a premium for split shifts, and many contracts pay one.

How the recipe does it

Configuration only: the package (package.toml) has one layer for everyone with the standard split_shift step, and the premium’s category is set up as paid and not worked:

[[layer]]
id = "split_shift"
[[layer.step]]
id = "split_shift"
uses = "standard/split_shift"
params = { gap = "1h", pay = "1h", category = "split_shift" }
[[category]]
id = "split_shift"
worked = false # paid, not worked: never counted toward overtime

On each workday the step looks at the stretches of time in the day, in order, for a gap longer than gap between one and the next. At the first, it adds pay as hours with no times of their own, in a category set up as not worked, and stops: one premium a day. A punched lunch (categories.lunch) is time in the day, so it fills its gap.

Parameters

ParameterMeaning (default)
gapThe longest gap that is not a split ("1h").
payThe premium’s time ("1h").
categoryIts category ("split_shift"), set up as not worked.

What the scenarios show

a-gap-of-more-than-an-hour: a gap of exactly an hour pays nothing, an hour and a minute pays the premium, a day split twice pays it once, and a long punched lunch is not a split.

This is a common way companies implement a split shift premium; check the rules where you operate. California’s premium is an hour at the minimum wage, reduced by what the day’s pay is above the minimum wage: the california_split_shift recipe works it out.

Get the recipe

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

split_shift_premium/package.toml
name = "split_shift_premium"
version = "1.0.0"
description = "A workday whose work is split by an unpaid gap of more than an hour pays an extra hour, once."
# Everyone: a workday split by a gap of more than an hour pays an hour in
# split_shift, a category set up as paid and not worked.
[[layer]]
id = "split_shift"
[[layer.step]]
id = "split_shift"
uses = "standard/split_shift"
params = { gap = "1h", pay = "1h", category = "split_shift" }

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's two stretches are exactly an hour apart: no premium. Tuesday's are an hour and a minute apart: an hour's premium. Wednesday's three stretches have two long gaps: the premium is paid once. Thursday's long punched lunch is a meal, not a gap
scenarios/a-gap-of-more-than-an-hour.toml
description = "Monday's two stretches are exactly an hour apart: no premium. Tuesday's are an hour and a minute apart: an hour's premium. Wednesday's three stretches have two long gaps: the premium is paid once. Thursday's long punched lunch is a meal, not a gap"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 11:00", kind = "out" },
{ at = "2026-10-05 12:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 11:00", kind = "out" },
{ at = "2026-10-06 12:01", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 06:00", kind = "in" }, { at = "2026-10-07 09:00", kind = "out" },
{ at = "2026-10-07 12:00", kind = "in" }, { at = "2026-10-07 14:00", kind = "out" },
{ at = "2026-10-07 17:00", kind = "in" }, { at = "2026-10-07 20:00", kind = "out" },
{ at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 11:00", kind = "lunch_start" },
{ at = "2026-10-08 12:30", kind = "lunch_end" }, { at = "2026-10-08 15:30", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
categories = { lunch = "meal" }
[[category]]
id = "meal"
worked = false
paid = false
[[category]]
id = "split_shift"
worked = false
[expect]
week = "2026-10-05"
worked = "30h 59m"
allocations = [
"2026-10-05 07:00-11:00 work 4.00",
"2026-10-05 12:00-16:00 work 4.00",
"2026-10-06 untimed split_shift 1.00",
"2026-10-06 07:00-11:00 work 4.00",
"2026-10-06 12:01-16:00 work 3.98",
"2026-10-07 untimed split_shift 1.00",
"2026-10-07 06:00-09:00 work 3.00",
"2026-10-07 12:00-14:00 work 2.00",
"2026-10-07 17:00-20:00 work 3.00",
"2026-10-08 07:00-11:00 work 4.00",
"2026-10-08 11:00-12:30 meal 1.50",
"2026-10-08 12:30-15:30 work 3.00",
]