Overtime at the regular rate
The rule
Overtime is paid at one and a half times the employee’s regular rate, and the regular rate is not simply the job’s hourly rate. It is the week’s pay for the hours worked, divided by those hours:
- hours at several rates in one week (two jobs) weigh each rate by its hours;
- shift differentials are part of it;
- nondiscretionary bonuses (promised for production, attendance or safety) are part of it;
- a bonus earned over several weeks is shared out over those weeks, and raises each one’s regular rate.
Each overtime hour is paid its straight time and half the regular rate on top. A 45-hour week at 20.00, with 18.00 of night differential, is 918.00 for 45 hours: a regular rate of 20.40, and the 5 overtime hours are owed 51.00 on top, not 50.00.
Who uses it
Every employer paying overtime under the federal rule, and the states that follow it. It matters wherever pay is more than one hourly rate: shift differentials, two jobs at two rates, production or attendance bonuses, commissions.
How the recipe does it
Configuration only: the package (package.toml) has one layer.
[[layer]]id = "overtime"[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]id = "straight-time"uses = "standard/earnings"params = { rate = "pay", measure = "wages", premiums = { work = 100, overtime = 100 }, window = "week" }
[[layer.step]]id = "differential"uses = "standard/allowance"params = { by = "shift", per_hour = { night = 200 }, pay = "wages", category = "shift_differential", window = "week" }
[[layer.step]]id = "overtime-premium"uses = "standard/regular_rate"params = { rate = "pay", measure = "wages", includes = ["shift_differential", "bonus"], premiums = { overtime = 50 } }earningspays every hour, overtime included, its straight time: 100% of the rate its job matches.allowancepays the night differential, as money.regular_rateworks the week’s regular rate out: each hour worked at thepayrate its context matches, and the money in the categoriesincludesnames (the differential, bonuses entered as money labor entries), over the hours worked. It pays each category ofpremiumsits per cent of that rate: overtime 50, the half on top. The money is worked out once for the week, rounded down to the cent, and added on the week’s last workday with time.
A week that runs across two pay periods is one week: the second period counts the first’s hours and money, and pays what the week’s premium comes to less what the first period paid for its own overtime at the rate of its days alone. A premium already paid is never taken back.
A bonus for a quarter is shared out over its weeks, each week’s share entered as money on a day of that week. A share entered after its week’s pay period closed is a late change: the closed week is worked out again, and the open period is adjusted by the share and the premium it adds.
Where the employee agreed in advance to overtime at the rate of the job
it is worked on, a layer of the company’s own pays overtime at 150% of
that rate and turns the regular rate off (overtime-at-the-rate-of-the-job-it-is-worked-on).
A missed meal’s hour owed at the regular rate (California’s rule) is
another premium category: premiums = { overtime = 50, meal_premium = 100 },
the meal premium being time not worked, so it neither counts toward the 40
nor lowers the rate.
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
| Parameter | Meaning |
|---|---|
rate | The rate kind each hour worked is paid at, matched on its context. |
measure | The money measure the premium is added in, and the money included is read from. |
includes | The categories of money that are part of the regular rate: differentials, nondiscretionary bonuses. |
premiums | Each premium category and its per cent of the regular rate. |
What the scenarios show
a-night-differential-raises-the-regular-rate: 918.00 for 45 hours is 20.40 an hour; the 5 overtime hours are owed 51.00 on top.two-rates-in-one-week-are-weighted-by-their-hours: 30 hours at 20.00 and 16 at 26.00 are a regular rate of 22.0869; the 6 overtime hours, worked driving, are owed 66.26 on top.overtime-at-the-rate-of-the-job-it-is-worked-on: the same week, with overtime at the rate in effect: 234.00 for the 6 hours.a-production-bonus-is-in-the-regular-rate: a 45.00 bonus makes the regular rate 21.00; the overtime premium is 52.50.a-quarterly-bonus-reaches-back-to-a-closed-week: a 90.00 share entered after the week closed adjusts the open week by 90.00 and the 5.00 of premium it adds.a-week-across-two-pay-periods-is-one-regular-rate: the first period pays 26.00 for Monday’s overtime at its own rate; the second counts the whole week and pays the 40.00 left of the week’s 66.00.a-meal-premium-is-paid-at-the-regular-rate: the premium hour is 21.00, the week’s regular rate, not the job’s 20.00.
Legal note
This is a common way companies work out the regular rate; check the rules
where you operate. What is left out of the regular rate (discretionary
bonuses, gifts, pay for time not worked, premiums already paid at one and
a half times or more) is the policy’s to say, by what includes names.
Overtime at the rate of the job worked on is allowed only by an agreement
made before the work. A bonus that cannot be tied to its weeks may be
shared out equally over the hours or the weeks it was earned in.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/regular_rate_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:
name = "regular_rate_overtime"version = "1.0.0"description = "Weekly overtime at one and a half times the regular rate: the week's pay at every rate worked, its shift differentials and its nondiscretionary bonuses, over the hours worked."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]measures = ["wages"]
# Everyone: past 40 hours a week is overtime. Every hour worked is paid# its straight time at the rate of its job, and night work its# differential; then each overtime hour is paid half the week's regular# rate on top.[[layer]]id = "overtime"[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]id = "straight-time"uses = "standard/earnings"params = { rate = "pay", measure = "wages", premiums = { work = 100, overtime = 100 }, window = "week" }
[[layer.step]]id = "differential"uses = "standard/allowance"params = { by = "shift", per_hour = { night = 200 }, pay = "wages", category = "shift_differential", window = "week" }
[[layer.step]]id = "overtime-premium"uses = "standard/regular_rate"params = { rate = "pay", measure = "wages", includes = ["shift_differential", "bonus"], premiums = { overtime = 50 } }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
Where a missed meal's hour is owed at the regular rate (California's rule), a layer adds the meal premium and pays it 100% of the regular rate. Monday's meal starts after 6 hours: an hour's premium. The week's 45 hours at 20.00 and a 45.00 bonus are a regular rate of 21.00: the premium hour is 21.00, not the job's 20.00, and is no hour worked, so it neither counts toward the 40 nor lowers the rate
description = "Where a missed meal's hour is owed at the regular rate (California's rule), a layer adds the meal premium and pays it 100% of the regular rate. Monday's meal starts after 6 hours: an hour's premium. The week's 45 hours at 20.00 and a 45.00 bonus are a regular rate of 21.00: the premium hour is 21.00, not the job's 20.00, and is no hour worked, so it neither counts toward the 40 nor lowers the rate"
punch = [ { at = "2026-10-05 07: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 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 16: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 = "out" }, { at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 11:00", kind = "lunch_start" }, { at = "2026-10-08 11:30", kind = "lunch_end" }, { at = "2026-10-08 16:30", kind = "out" }, { at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 11:00", kind = "lunch_start" }, { at = "2026-10-09 11:30", kind = "lunch_end" }, { at = "2026-10-09 16:30", kind = "out" },]
[policy]zone = "America/Los_Angeles"pay_periods = { every_days = 7, from = "2026-10-05" }
[[layer]]id = "meal-premium"settings = { categories = { lunch = "meal" } }[[layer.step]]id = "meal_premium"uses = "standard/meal_premium"params = { by = "5h" }before = "weekly"[[layer.step]]id = "overtime-premium"change = "params"params = { premiums = { overtime = 50, meal_premium = 100 } }
[[category]]id = "meal"worked = falsepaid = false
[[category]]id = "meal_premium"worked = false
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 2000currency = "USD"
[[labor]]workday = "2026-10-09"measure = "wages"quantity = 4500category = "bonus"recorded = "2026-10-09 17:00"
[expect]week = "2026-10-05"quantities = [ "2026-10-09 wages 45.00 USD bonus", "2026-10-09 wages 21.00 USD meal_premium", "2026-10-09 wages 52.50 USD overtime", "2026-10-09 wages 100.00 USD overtime", "2026-10-09 wages 800.00 USD work",]Four day shifts and a night shift, 9 hours each, are 45 hours at 20.00, the last 5 overtime. The night shift's 9 hours earn the 2.00 differential, 18.00, so the week's pay before overtime is 918.00 for 45 hours: a regular rate of 20.40, not the 20.00 an hour of the job. Each overtime hour is paid its 20.00 straight time and half of 20.40 on top, 51.00 for the 5
description = "Four day shifts and a night shift, 9 hours each, are 45 hours at 20.00, the last 5 overtime. The night shift's 9 hours earn the 2.00 differential, 18.00, so the week's pay before overtime is 918.00 for 45 hours: a regular rate of 20.40, not the 20.00 an hour of the job. Each overtime hour is paid its 20.00 straight time and half of 20.40 on top, 51.00 for the 5"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 23:00", kind = "in" }, { at = "2026-10-10 08:00", kind = "out" },]
[policy]zone = "America/Chicago"pay_periods = { every_days = 7, from = "2026-10-05" }
[[measure]]id = "wages"kind = "money"currency = "USD"
[[shift_definition]]id = "days"start = "07:00"end = "15:00"days = ["monday", "tuesday", "wednesday", "thursday", "friday"]values = { shift = "day" }
[[shift_definition]]id = "nights"start = "23:00"end = "07:00"days = ["monday", "tuesday", "wednesday", "thursday", "friday"]values = { shift = "night" }
[[rate]]kind = "pay"amount = 2000currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-08 wages 720.00 USD work shift=day", "2026-10-09 wages 51.00 USD overtime", "2026-10-09 wages 100.00 USD overtime shift=night", "2026-10-09 wages 18.00 USD shift_differential shift=night", "2026-10-09 wages 80.00 USD work shift=night",]A week's production bonus of 45.00, promised for meeting a target, is part of the regular rate: five 9-hour days at 20.00 are 900.00 and the bonus 45.00, 945.00 for 45 hours, a regular rate of 21.00. The 5 overtime hours are paid half of 21.00 on top, 52.50, not 50.00
description = "A week's production bonus of 45.00, promised for meeting a target, is part of the regular rate: five 9-hour days at 20.00 are 900.00 and the bonus 45.00, 945.00 for 45 hours, a regular rate of 21.00. The 5 overtime hours are paid half of 21.00 on top, 52.50, not 50.00"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },]
[policy]zone = "America/Chicago"pay_periods = { every_days = 7, from = "2026-10-05" }
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 2000currency = "USD"
[[labor]]workday = "2026-10-09"measure = "wages"quantity = 4500category = "bonus"recorded = "2026-10-09 17:00"
[expect]week = "2026-10-05"quantities = [ "2026-10-09 wages 45.00 USD bonus", "2026-10-09 wages 52.50 USD overtime", "2026-10-09 wages 100.00 USD overtime", "2026-10-09 wages 800.00 USD work",]A quarterly bonus is shared out over the weeks it was earned in, each week's share entered on a day of that week. The week of October 5 closed with 45 hours at 20.00 and 50.00 of overtime premium. Its 90.00 share, entered the next Tuesday, makes the week 990.00 for 45 hours, a regular rate of 22.00: the 5 overtime hours were owed 55.00 on top. The open week is adjusted by the bonus and the 5.00 of premium it adds; the closed week stays as it was paid
description = "A quarterly bonus is shared out over the weeks it was earned in, each week's share entered on a day of that week. The week of October 5 closed with 45 hours at 20.00 and 50.00 of overtime premium. Its 90.00 share, entered the next Tuesday, makes the week 990.00 for 45 hours, a regular rate of 22.00: the 5 overtime hours were owed 55.00 on top. The open week is adjusted by the bonus and the 5.00 of premium it adds; the closed week stays as it was paid"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },]
[policy]zone = "America/Chicago"pay_periods = { every_days = 7, from = "2026-10-05" }
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 2000currency = "USD"
[[close]]period = "2026-10-05"recorded = "2026-10-12 08:00"
[[labor]]workday = "2026-10-09"measure = "wages"quantity = 9000category = "bonus"recorded = "2026-10-13 11:00"by = "payroll"
[expect]week = "2026-10-12"quantities = ["2026-10-13 wages 90.00 USD bonus", "2026-10-13 wages 5.00 USD overtime"]
[expect.period]day = "2026-10-05"quantities = [ "2026-10-09 wages 50.00 USD overtime", "2026-10-09 wages 100.00 USD overtime", "2026-10-09 wages 800.00 USD work",]Paid on the 1st and 16th, with daily overtime past 8 hours, the week of October 12 runs across two pay periods. Monday's 10 hours and a 60.00 bonus are in the first period: 260.00 for 10 hours, a regular rate of 26.00, so Monday's 2 overtime hours are paid 26.00 on top there. Friday and Saturday's 20 hours are in the second, which counts the whole week: 660.00 for 30 hours, a regular rate of 22.00, and 66.00 on top for the week's 6 overtime hours. 26.00 of it was paid already: the second period pays the 40.00 left, and the week comes to what it would in one period
description = "Paid on the 1st and 16th, with daily overtime past 8 hours, the week of October 12 runs across two pay periods. Monday's 10 hours and a 60.00 bonus are in the first period: 260.00 for 10 hours, a regular rate of 26.00, so Monday's 2 overtime hours are paid 26.00 on top there. Friday and Saturday's 20 hours are in the second, which counts the whole week: 660.00 for 30 hours, a regular rate of 22.00, and 66.00 on top for the week's 6 overtime hours. 26.00 of it was paid already: the second period pays the 40.00 left, and the week comes to what it would in one period"
punch = [ { at = "2026-10-12 07:00", kind = "in" }, { at = "2026-10-12 17:00", kind = "out" }, { at = "2026-10-16 07:00", kind = "in" }, { at = "2026-10-16 17:00", kind = "out" }, { at = "2026-10-17 07:00", kind = "in" }, { at = "2026-10-17 17:00", kind = "out" },]
[policy]zone = "America/Chicago"
# Paid on the 1st and 16th of the month, workweeks from Monday, and# overtime past 8 hours a day too.[[layer]]id = "semi-monthly-daily"settings = { pay_periods = { month_days = [1, 16] }, week_starts = "monday" }[[layer.step]]id = "daily"uses = "standard/threshold"params = { over = "8h", to = "overtime", window = "day" }before = "weekly"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 2000currency = "USD"
[[labor]]workday = "2026-10-12"measure = "wages"quantity = 6000category = "bonus"recorded = "2026-10-12 17:00"
[expect]week = "2026-10-12"quantities = [ "2026-10-12 wages 60.00 USD bonus", "2026-10-12 wages 26.00 USD overtime", "2026-10-12 wages 40.00 USD overtime", "2026-10-12 wages 160.00 USD work", "2026-10-17 wages 40.00 USD overtime", "2026-10-17 wages 80.00 USD overtime", "2026-10-17 wages 320.00 USD work",]
[expect.period]day = "2026-10-16"first = "2026-10-16"quantities = [ "2026-10-17 wages 40.00 USD overtime", "2026-10-17 wages 80.00 USD overtime", "2026-10-17 wages 320.00 USD work",]Where the worker agreed in advance to overtime at the rate of the job it is worked on, a company's own layer pays overtime at 150% of that job's rate and turns the regular rate off: the same week's 6 overtime hours, all driving, are 234.00, where the weighted regular rate pays 156.00 and 66.26
description = "Where the worker agreed in advance to overtime at the rate of the job it is worked on, a company's own layer pays overtime at 150% of that job's rate and turns the regular rate off: the same week's 6 overtime hours, all driving, are 234.00, where the weighted regular rate pays 156.00 and 66.26"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-05 17:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-06 17:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-07 17:00", kind = "out" }, { at = "2026-10-08 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-09 16:00", kind = "out" },]
[policy]zone = "America/Chicago"pay_periods = { every_days = 7, from = "2026-10-05" }
[[layer]]id = "rate-in-effect"[[layer.step]]id = "straight-time"change = "params"params = { premiums = { work = 100, overtime = 150 } }[[layer.step]]id = "overtime-premium"change = "disable"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"matches = { job = "pack" }amount = 2000currency = "USD"
[[rate]]kind = "pay"matches = { job = "drive" }amount = 2600currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-07 wages 600.00 USD work job=pack", "2026-10-09 wages 234.00 USD overtime job=drive", "2026-10-09 wages 260.00 USD work job=drive",]Three 10-hour days packing at 20.00 and two 8-hour days driving at 26.00 are 46 hours, the last 6 overtime, on the driving job. The week's straight time is 600.00 and 416.00, 1016.00 for 46 hours: a regular rate of 22.0869 an hour, weighted by the hours at each rate. Each overtime hour is paid its 26.00 straight time and half the regular rate on top: 66.26 for the 6, rounded down to the cent, not half of either job's rate
description = "Three 10-hour days packing at 20.00 and two 8-hour days driving at 26.00 are 46 hours, the last 6 overtime, on the driving job. The week's straight time is 600.00 and 416.00, 1016.00 for 46 hours: a regular rate of 22.0869 an hour, weighted by the hours at each rate. Each overtime hour is paid its 26.00 straight time and half the regular rate on top: 66.26 for the 6, rounded down to the cent, not half of either job's rate"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-05 17:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-06 17:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in", values = { job = "pack" } }, { at = "2026-10-07 17:00", kind = "out" }, { at = "2026-10-08 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 08:00", kind = "in", values = { job = "drive" } }, { at = "2026-10-09 16:00", kind = "out" },]
[policy]zone = "America/Chicago"pay_periods = { every_days = 7, from = "2026-10-05" }
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"matches = { job = "pack" }amount = 2000currency = "USD"
[[rate]]kind = "pay"matches = { job = "drive" }amount = 2600currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-07 wages 600.00 USD work job=pack", "2026-10-09 wages 66.26 USD overtime", "2026-10-09 wages 156.00 USD overtime job=drive", "2026-10-09 wages 260.00 USD work job=drive",]