Skip to content

Minimum wage by location

The rule

Cities and states set their own minimum wages. A worker who moves between sites in one week is owed, for the hours worked at each, at least the minimum wage where they were worked. Pay above one place’s minimum does not make up for pay below another’s. Where the law allows a tip credit, the tips a tipped employee reports count toward the minimum; what the cash wage and tips still fall short of, the employer makes up.

Who uses it

Employers with sites in more than one city or state: retail and food chains, home care, cleaning and security crews, staffing agencies.

How the recipe does it

Configuration only: a package (package.toml) of one layer. Each site’s minimum wage is a rate of the kind minimum, matched on the work’s context (site = city); the pay rate is the kind pay.

[[layer]]
id = "minimum-wage"
[[layer.step]]
id = "minimum"
uses = "standard/minimum_wage"
params = { rate = "pay", minimum = "minimum", pay = "wages", category = "minimum_wage_makeup" }

Each week, the step groups the hours by the minimum they match and works out, exactly, what the pay rate pays them short of it; the shortfalls are added up, never offset by pay above another minimum. Money in the categories includes names (tips, where a tip credit is allowed) counts against what is owed. What is left is added as money on the week’s last day worked. A layer for the jurisdictions that allow a tip credit adds includes = ["tips"]; elsewhere the whole is made up.

A workweek split by a pay date is checked whole: the later period counts the earlier one’s hours and money of the week, and pays what the whole week owes less what the earlier period already made up for its own days. What was made up is never taken back.

What your setup needs

Set up before you adopt the recipe; the recipe’s steps read them by name, and adopting it is refused, with a list of what is missing, until they exist.

  • A measure called wages: the amount the recipe adds up (money in a currency, or a count).

The scenarios show each as it was set up for them.

Parameters

ParameterMeaning
rateThe rate kind the hours are paid at.
minimumThe rate kind of the minimum wage, matched on the work’s context.
payThe money measure the make-up is added in, and money counted from.
categoryThe make-up’s category.
includesCategories of money counted toward the minimum (tips).
countsThe categories held to the minimum (every worked one).

What the scenarios show

  • each-citys-hours-at-its-minimum: 16 hours at the city’s 20.00 paid 17.00 owe 48.00; the county’s hours, above its 16.00, make up none of it.
  • a-week-split-by-a-pay-date-is-checked-whole: Friday alone is 16.00 short, but the week’s 40 hours are paid the minimum: nothing owed.
  • what-was-made-up-is-not-taken-back: the first period makes up 64.00; the whole week owes 48.00, and the 16.00 more is not taken back.
  • tips-count-where-a-tip-credit-is-allowed: a 2.13 cash wage and 300.00 in tips leave 143.84 owed for 32 hours at 16.00.

This is a common way companies apply local minimum wages; check the rules where you operate. Which place’s minimum applies to an hour (where it was worked, how much of the week was worked there) and whether a tip credit is allowed differ by law: the rates and the layers say it. Overtime for tipped staff is worked out on the full minimum wage.

Get the recipe

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

minimum_wage_by_location/package.toml
name = "minimum_wage_by_location"
version = "1.0.0"
description = "The hours worked in each city are paid at least that city's minimum wage, in the week they are worked; what the pay rate falls short of is made up."
# What the tenant must have set up for the recipe: the steps read these by name.
[needs]
measures = ["wages"]
# Each week, the hours worked are paid at least the minimum rate their
# site matches; what the pay rate falls short of, for the hours of each
# minimum, is added as money in minimum_wage_makeup.
[[layer]]
id = "minimum-wage"
[[layer.step]]
id = "minimum"
uses = "standard/minimum_wage"
params = { rate = "pay", minimum = "minimum", pay = "wages", category = "minimum_wage_makeup" }

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 week of October 12 runs across two pay periods; the minimum is 16.00 at both jobs. Monday to Thursday's 32 hours packing at 18.00 are in the first period, Friday's 8 driving at 14.00 in the second. Alone, Friday would be 16.00 short; the workweek is checked whole, and its 40 hours paid 640.00 against a minimum of 640.00 owe nothing
scenarios/a-week-split-by-a-pay-date-is-checked-whole.toml
description = "Paid on the 1st and 16th, the week of October 12 runs across two pay periods; the minimum is 16.00 at both jobs. Monday to Thursday's 32 hours packing at 18.00 are in the first period, Friday's 8 driving at 14.00 in the second. Alone, Friday would be 16.00 short; the workweek is checked whole, and its 40 hours paid 640.00 against a minimum of 640.00 owe nothing"
punch = [
{ at = "2026-10-12 08:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-12 16:00", kind = "out" },
{ at = "2026-10-13 08:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-13 16:00", kind = "out" },
{ at = "2026-10-14 08:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-14 16:00", kind = "out" },
{ at = "2026-10-15 08:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-15 16:00", kind = "out" },
{ at = "2026-10-16 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-16 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[layer]]
id = "semi-monthly"
settings = { pay_periods = { month_days = [1, 16] }, week_starts = "monday" }
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[rate]]
kind = "pay"
matches = { job = "pack" }
amount = 1800
currency = "USD"
[[rate]]
kind = "pay"
matches = { job = "drive" }
amount = 1400
currency = "USD"
[[rate]]
kind = "minimum"
amount = 1600
currency = "USD"
[expect]
week = "2026-10-12"
quantities = []
[expect.period]
day = "2026-10-16"
first = "2026-10-16"
quantities = []
Paid 17.00 an hour, the worker spends Monday and Tuesday at the city site, whose minimum is 20.00, and Wednesday and Thursday at the county site, whose minimum is 16.00. The city's 16 hours are 3.00 short each: 48.00 owed. The county's hours are paid 1.00 above its minimum, which makes up none of the city's
scenarios/each-citys-hours-at-its-minimum.toml
description = "Paid 17.00 an hour, the worker spends Monday and Tuesday at the city site, whose minimum is 20.00, and Wednesday and Thursday at the county site, whose minimum is 16.00. The city's 16 hours are 3.00 short each: 48.00 owed. The county's hours are paid 1.00 above its minimum, which makes up none of the city's"
punch = [
{ at = "2026-10-05 08:00", kind = "in", values = { site = "city" } }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in", values = { site = "city" } }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-08 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[rate]]
kind = "pay"
amount = 1700
currency = "USD"
[[rate]]
kind = "minimum"
matches = { site = "city" }
amount = 2000
currency = "USD"
[[rate]]
kind = "minimum"
matches = { site = "county" }
amount = 1600
currency = "USD"
[expect]
week = "2026-10-05"
quantities = ["2026-10-08 wages 48.00 USD minimum_wage_makeup"]
A server paid a cash wage of 2.13 an hour, at a site whose law allows a tip credit: a layer for that jurisdiction counts reported tips toward the minimum. 32 hours at the site's 16.00 are 443.84 short of it; 300.00 in tips leave 143.84 to make up. Where the law allows no tip credit there is no such layer, and the whole is made up
scenarios/tips-count-where-a-tip-credit-is-allowed.toml
description = "A server paid a cash wage of 2.13 an hour, at a site whose law allows a tip credit: a layer for that jurisdiction counts reported tips toward the minimum. 32 hours at the site's 16.00 are 443.84 short of it; 300.00 in tips leave 143.84 to make up. Where the law allows no tip credit there is no such layer, and the whole is made up"
punch = [
{ at = "2026-10-05 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in", values = { site = "county" } }, { at = "2026-10-08 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[location]]
id = "county-site"
zone = "America/Los_Angeles"
jurisdiction = "county"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "county-site"
[[layer]]
id = "tip-credit"
applies_to = "jurisdiction = county"
[[layer.step]]
id = "minimum"
change = "params"
params = { includes = ["tips"] }
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[rate]]
kind = "pay"
amount = 213
currency = "USD"
[[rate]]
kind = "minimum"
matches = { site = "county" }
amount = 1600
currency = "USD"
[[labor]]
workday = "2026-10-08"
measure = "wages"
quantity = 30000
category = "tips"
recorded = "2026-10-08 17:00"
[expect]
week = "2026-10-05"
quantities = [
"2026-10-08 wages 143.84 USD minimum_wage_makeup",
"2026-10-08 wages 300.00 USD tips",
]
The same week the other way round: Monday to Thursday's 32 hours driving at 14.00 are 64.00 short in the first period, which makes it up. Friday's 8 hours packing at 18.00 bring the whole week to 48.00 short: the 16.00 already paid above that is not taken back, and the second period adds nothing
scenarios/what-was-made-up-is-not-taken-back.toml
description = "The same week the other way round: Monday to Thursday's 32 hours driving at 14.00 are 64.00 short in the first period, which makes it up. Friday's 8 hours packing at 18.00 bring the whole week to 48.00 short: the 16.00 already paid above that is not taken back, and the second period adds nothing"
punch = [
{ at = "2026-10-12 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-12 16:00", kind = "out" },
{ at = "2026-10-13 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-13 16:00", kind = "out" },
{ at = "2026-10-14 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-14 16:00", kind = "out" },
{ at = "2026-10-15 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-15 16:00", kind = "out" },
{ at = "2026-10-16 08:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-16 16:00", kind = "out" },
]
[policy]
zone = "America/Los_Angeles"
[[layer]]
id = "semi-monthly"
settings = { pay_periods = { month_days = [1, 16] }, week_starts = "monday" }
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[rate]]
kind = "pay"
matches = { job = "pack" }
amount = 1800
currency = "USD"
[[rate]]
kind = "pay"
matches = { job = "drive" }
amount = 1400
currency = "USD"
[[rate]]
kind = "minimum"
amount = 1600
currency = "USD"
[expect]
week = "2026-10-12"
quantities = [
"2026-10-15 wages 64.00 USD minimum_wage_makeup",
]