Skip to content

Meal period premium (California style)

The rule

Someone who works more than 5 hours in a day must start a meal break no later than the end of their fifth hour of work. When the meal starts later, or is not taken at all, they are paid one extra hour: a premium, paid but not hours worked. Someone who works more than 10 hours must start a second meal by the end of the tenth hour, on the same terms. At most one meal premium is paid a day, whichever meal was missed.

Who uses it

Employers of non-exempt staff in California, and employers anywhere whose contract or policy pays a premium for a late or missed meal (common in union agreements in healthcare and transport).

How the recipe does it

Configuration only: a package (package.toml) of one policy layer, a setting and the standard meal_premium and second_meal_premium steps, on each workday.

[[layer]]
id = "meal-premium"
settings = { categories = { lunch = "meal" } } # punched lunches go to "meal"
[[layer.step]]
id = "meal_premium"
uses = "standard/meal_premium"
params = { by = "5h", premium = "1h", category = "meal_premium" }
[[layer.step]]
id = "second_meal"
uses = "standard/second_meal_premium"
params = { by = "10h" }

The tenant sets up the two categories:

[[category]]
id = "meal"
worked = false
paid = false
[[category]]
id = "meal_premium"
worked = false # paid, not worked: never counted toward overtime
  • A day with no more than required_after worked owes no meal.
  • Otherwise the work before the day’s first meal is added up: the meal is a punched lunch, or a gap of at least meal between punches (punched out and back in). More than by of work before it pays premium in category.
  • The premium is in a category set up as not worked, so it is paid and shown, but never counted as hours worked.
  • second_meal_premium does the same for the work before the day’s second meal, on a day worked past 10 hours, and pays nothing on a day that has a meal premium already: one a day.

A shift’s segments belong to the workday each starts in: on a night shift punched out for its meal after midnight, the work before the meal is the first workday’s, and so is the premium. Use standard/attribute to keep a night shift’s time on one workday if your policy counts it that way.

Parameters

ParameterMeaning (default)
byWork allowed before the meal must start ("5h"); a meal starting exactly then is on time.
required_afterA day needs more than this worked for a meal to be due (default: by).
premiumThe premium’s time ("1h").
categoryIts category ("meal_premium"), set up as not worked.
mealThe shortest gap between punches that counts as a meal ("30m").
meal_categoryWhere punched lunches are ("meal", the layer’s categories.lunch).

second_meal_premium takes the same parameters, by defaulting to "10h", and two of its own:

ParameterMeaning (default)
waiverThe employment attribute a signed waiver of the second meal is kept in.
waived_up_toA waiver holds on a day of no more than this worked ("12h"), and only where the first meal was taken.

A waiver is a fact about the person, dated as their attributes are: the payroll sets the attribute from the day the waiver is signed, and takes it off from the day it is withdrawn.

What the scenarios show

a-meal-by-the-end-of-the-fifth-hour: a lunch starting exactly at the end of the fifth hour pays no premium and one a minute later does; exactly 5 hours with no meal is not a day a meal is due, 6 hours with none pays the premium; and a night shift’s late meal, after midnight, pays it on the workday the shift started.

a-second-meal-by-the-end-of-the-tenth-hour: 12 hours with no second meal pay the premium; a day missing both meals pays one; a second meal after 9 hours pays none.

a-signed-waiver-of-the-second-meal: with a signed waiver, 12 hours with the first meal taken owe nothing; 12 hours 30 minutes owe the premium.

This is a common way companies implement a meal period premium; check the rules where you operate. A first meal waived on a day of no more than 6 hours, and on-duty meals, are not covered here: a layer turns the step off for the people or days they apply to. California pays the premium at the regular rate: regular_rate_overtime shows how.

Get the recipe

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

meal_period_premium/package.toml
name = "meal_period_premium"
version = "1.0.0"
description = "A day with more than 5 hours of work whose meal did not start by the end of the fifth hour pays an extra hour, as does a day of more than 10 hours whose second meal did not start by the end of the tenth: one a day."
# Punched lunches go to meal; a day worked past 5 hours with more than 5
# worked before its first meal pays an hour in meal_premium, a category
# set up as paid and not worked; so does a day worked past 10 hours with
# more than 10 worked before its second meal, unless the day has one
# already.
[[layer]]
id = "meal-premium"
settings = { categories = { lunch = "meal" } }
[[layer.step]]
id = "meal_premium"
uses = "standard/meal_premium"
params = { by = "5h", premium = "1h", category = "meal_premium" }
[[layer.step]]
id = "second_meal"
uses = "standard/second_meal_premium"
params = { by = "10h" }

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 lunch starts at the end of the fifth hour: no premium. Tuesday's starts a minute later: an hour's premium. Wednesday is exactly 5 hours with no meal, none due; Thursday is 6 hours with no meal: a premium. Friday's night shift takes its meal five and a half hours in, after midnight: the premium is Friday's workday's
scenarios/a-meal-by-the-end-of-the-fifth-hour.toml
description = "Monday's lunch starts at the end of the fifth hour: no premium. Tuesday's starts a minute later: an hour's premium. Wednesday is exactly 5 hours with no meal, none due; Thursday is 6 hours with no meal: a premium. Friday's night shift takes its meal five and a half hours in, after midnight: the premium is Friday's workday's"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 13:00", kind = "lunch_start" },
{ at = "2026-10-05 13:30", kind = "lunch_end" }, { at = "2026-10-05 16:30", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 13:01", kind = "lunch_start" },
{ at = "2026-10-06 13:31", kind = "lunch_end" }, { at = "2026-10-06 16:30", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 13:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 14:00", kind = "out" },
{ at = "2026-10-09 22:00", kind = "in" }, { at = "2026-10-10 03:30", kind = "lunch_start" },
{ at = "2026-10-10 04:00", kind = "lunch_end" }, { at = "2026-10-10 07:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[category]]
id = "meal"
worked = false
paid = false
[[category]]
id = "meal_premium"
worked = false
[expect]
week = "2026-10-05"
worked = "35h 30m"
allocations = [
"2026-10-05 08:00-13:00 work 5.00",
"2026-10-05 13:00-13:30 meal 0.50",
"2026-10-05 13:30-16:30 work 3.00",
"2026-10-06 untimed meal_premium 1.00",
"2026-10-06 08:00-13:01 work 5.01",
"2026-10-06 13:01-13:31 meal 0.50",
"2026-10-06 13:31-16:30 work 2.99",
"2026-10-07 08:00-13:00 work 5.00",
"2026-10-08 untimed meal_premium 1.00",
"2026-10-08 08:00-14:00 work 6.00",
"2026-10-09 untimed meal_premium 1.00",
"2026-10-09 22:00-2026-10-10 03:30 work 5.50",
"2026-10-10 03:30-04:00 meal 0.50",
"2026-10-10 04:00-07:00 work 3.00",
]
Monday's first meal is on time, but 12 hours are worked with no second meal: an hour's premium. Tuesday's first meal is late and there is no second one either: one premium for the day, not two. Wednesday's second meal starts after 9 hours: none due
scenarios/a-second-meal-by-the-end-of-the-tenth-hour.toml
description = "Monday's first meal is on time, but 12 hours are worked with no second meal: an hour's premium. Tuesday's first meal is late and there is no second one either: one premium for the day, not two. Wednesday's second meal starts after 9 hours: none due"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 11:00", kind = "lunch_start" },
{ at = "2026-10-05 11:30", kind = "lunch_end" }, { at = "2026-10-05 19:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 13:00", kind = "lunch_start" },
{ at = "2026-10-06 13:30", kind = "lunch_end" }, { at = "2026-10-06 19:30", kind = "out" },
{ at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 11:00", kind = "lunch_start" },
{ at = "2026-10-07 11:30", kind = "lunch_end" }, { at = "2026-10-07 16:30", kind = "lunch_start" },
{ at = "2026-10-07 17:00", kind = "lunch_end" }, { at = "2026-10-07 19:30", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[category]]
id = "meal"
worked = false
paid = false
[[category]]
id = "meal_premium"
worked = false
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 untimed meal_premium 1.00",
"2026-10-05 07:00-11:00 work 4.00",
"2026-10-05 11:00-11:30 meal 0.50",
"2026-10-05 11:30-19:30 work 8.00",
"2026-10-06 untimed meal_premium 1.00",
"2026-10-06 07:00-13:00 work 6.00",
"2026-10-06 13:00-13:30 meal 0.50",
"2026-10-06 13:30-19:30 work 6.00",
"2026-10-07 07:00-11:00 work 4.00",
"2026-10-07 11:00-11:30 meal 0.50",
"2026-10-07 11:30-16:30 work 5.00",
"2026-10-07 16:30-17:00 meal 0.50",
"2026-10-07 17:00-19:30 work 2.50",
]
The employee signed a waiver of the second meal, kept as the employment attribute second_meal_waiver; the company's layer names it. Monday is 12 hours with the first meal taken: the waiver holds and no premium is owed. Tuesday is 12 hours 30 minutes: past 12 hours a second meal cannot be waived, and the premium is owed
scenarios/a-signed-waiver-of-the-second-meal.toml
description = "The employee signed a waiver of the second meal, kept as the employment attribute second_meal_waiver; the company's layer names it. Monday is 12 hours with the first meal taken: the waiver holds and no premium is owed. Tuesday is 12 hours 30 minutes: past 12 hours a second meal cannot be waived, and the premium is owed"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 11:00", kind = "lunch_start" },
{ at = "2026-10-05 11:30", kind = "lunch_end" }, { at = "2026-10-05 19:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 11:00", kind = "lunch_start" },
{ at = "2026-10-06 11:30", kind = "lunch_end" }, { at = "2026-10-06 20:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[layer]]
id = "waivers"
[[layer.step]]
id = "second_meal"
change = "params"
params = { waiver = "second_meal_waiver" }
[[employment]]
effective = "2026-01-05"
kind = "hired"
attributes = { second_meal_waiver = true }
[[category]]
id = "meal"
worked = false
paid = false
[[category]]
id = "meal_premium"
worked = false
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 07:00-11:00 work 4.00",
"2026-10-05 11:00-11:30 meal 0.50",
"2026-10-05 11:30-19:30 work 8.00",
"2026-10-06 untimed meal_premium 1.00",
"2026-10-06 07:00-11:00 work 4.00",
"2026-10-06 11:00-11:30 meal 0.50",
"2026-10-06 11:30-20:00 work 8.50",
]