Tips as money, and the tip credit
The rule
A tipped employee is paid a cash wage below the minimum wage; the tips they receive count toward the rest (the tip credit). When a workweek’s cash wage and tips together fall short of the minimum wage for the hours worked, the employer pays the difference.
Who uses it
Restaurants, bars, hotels, salons and delivery services that pay a tipped cash wage where the law allows a tip credit.
How the recipe does it
Tips are money: a money measure (tips), reported per shift as labor
entries in their own categories (card_tips, cash_tips). They show in
the ledger beside the hours and go to payroll with it.
The rule is configuration only: the package (package.toml) has one
layer for everyone with the standard tip_credit step, which checks each
workweek:
[[layer]]id = "tip_credit"[[layer.step]]id = "tip_credit"uses = "standard/tip_credit"params = { tips = "tips", cash_wage = 213, minimum = 725, pay = "pay", category = "tip_makeup" }It adds up the week’s punched time, prices it at the minimum and at the cash wage to the exact time, takes off the week’s tips and, when something is still owed, adds it as money on the week’s last day worked.
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.
Where the cash wage or the minimum differs (a state, a city), a layer for those people changes the step’s parameters:
[[layer]]id = "minimum"order = 20applies_to = "jurisdiction = metro"[[layer.step]]id = "tip_credit"change = "params"params = { minimum = 1000 }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
pay: the amount the recipe adds up (money in a currency, or a count). - 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 |
|---|---|
tips | The money measure tips are reported in. |
cash_wage | The cash wage an hour, in minor units. |
minimum | The minimum wage an hour, in minor units. |
pay | The money measure the make-up is added in. |
category | The make-up’s category. |
counts | The categories of punched time counted (default all of it). |
What the scenarios show
a-slow-week-is-made-up: 150.00 in tips for 40 hours leaves 54.80 owed.exactly-enough-tips: 204.80 in tips is exactly enough; nothing owed.tips-cover-the-minimum: 250.00 in tips; nothing owed.a-week-split-by-a-pay-date-counts-the-whole-weeks-tips: Friday alone, with no tips, would be 40.96 short; the week’s 250.00 in tips cover it.a-higher-cash-wage-leaves-less-to-make-up: a cash wage of 3.00 leaves 20.00 owed for the slow week.a-higher-minimum-asks-more: a minimum of 10.00 leaves 164.80 owed.the-make-up-goes-where-the-policy-names: withpayandcategorynamed otherwise, the 54.80 lands there.
Legal note
This is a common way companies implement a tip credit; check the rules where you operate. Several states allow no tip credit at all, the cash wage and minimum differ by place, and 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/tips. 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 = "tips"version = "1.0.0"description = "Tips reported as money beside the hours, and the difference made up when a week's cash wage of 2.13 and tips fall short of a 7.25 minimum wage."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]measures = ["pay", "wages"]
# Everyone: each workweek, what the hours must pay at the minimum wage,# less the cash wage and the tips reported, is made up as money.[[layer]]id = "tip_credit"[[layer.step]]id = "tip_credit"uses = "standard/tip_credit"params = { tips = "tips", cash_wage = 213, minimum = 725, pay = "pay", category = "tip_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).
The same slow week where the cash wage is 3.00 an hour: the 40 hours must pay 290.00 at the minimum, the cash wage pays 120.00 and the tips 150.00, so only 20.00 is made up. The cash wage the policy names is the one taken off
description = "The same slow week where the cash wage is 3.00 an hour: the 40 hours must pay 290.00 at the minimum, the cash wage pays 120.00 and the tips 150.00, so only 20.00 is made up. The cash wage the policy names is the one taken off"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 4000category = "card_tips"
# Where the cash wage is 3.00 an hour.[[layer]]id = "cash-wage"order = 20[[layer.step]]id = "tip_credit"change = "params"params = { cash_wage = 300 }
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 pay 20.00 USD tip_makeup", "2026-10-09 tips 40.00 USD card_tips",]The same slow week where the minimum wage is 10.00 an hour: the 40 hours must pay 400.00, the cash wage pays 85.20 and the tips 150.00, so 164.80 is made up. The minimum the policy names is the one the week must reach
description = "The same slow week where the minimum wage is 10.00 an hour: the 40 hours must pay 400.00, the cash wage pays 85.20 and the tips 150.00, so 164.80 is made up. The minimum the policy names is the one the week must reach"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 4000category = "card_tips"
# Where the minimum wage is 10.00 an hour.[[layer]]id = "minimum"order = 20[[layer.step]]id = "tip_credit"change = "params"params = { minimum = 1000 }
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 pay 164.80 USD tip_makeup", "2026-10-09 tips 40.00 USD card_tips",]A server paid 2.13 an hour works 40 hours and reports 150.00 in tips: at a 7.25 minimum the week must pay 290.00; the cash wage pays 85.20 and the tips 150.00, so 54.80 is made up, on Friday, the last day worked
description = "A server paid 2.13 an hour works 40 hours and reports 150.00 in tips: at a 7.25 minimum the week must pay 290.00; the cash wage pays 85.20 and the tips 150.00, so 54.80 is made up, on Friday, the last day worked"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 4000category = "card_tips"
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 pay 54.80 USD tip_makeup", "2026-10-09 tips 40.00 USD card_tips",]Paid on the 1st and 16th, the week of October 12 runs across two pay periods. Monday to Thursday's 32 hours and 250.00 in tips are in the first, Friday's 8 hours with no tips in the second. Alone, Friday would be 40.96 short; the workweek is checked whole: 40 hours must pay 290.00, the cash wage pays 85.20 and the week's tips 250.00, and nothing is owed
description = "Paid on the 1st and 16th, the week of October 12 runs across two pay periods. Monday to Thursday's 32 hours and 250.00 in tips are in the first, Friday's 8 hours with no tips in the second. Alone, Friday would be 40.96 short; the workweek is checked whole: 40 hours must pay 290.00, the cash wage pays 85.20 and the week's tips 250.00, and nothing is owed"
punch = [ { at = "2026-10-12 11:00", kind = "in" }, { at = "2026-10-12 19:00", kind = "out" }, { at = "2026-10-13 11:00", kind = "in" }, { at = "2026-10-13 19:00", kind = "out" }, { at = "2026-10-14 11:00", kind = "in" }, { at = "2026-10-14 19:00", kind = "out" }, { at = "2026-10-15 11:00", kind = "in" }, { at = "2026-10-15 19:00", kind = "out" }, { at = "2026-10-16 11:00", kind = "in" }, { at = "2026-10-16 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[layer]]id = "semi-monthly"settings = { pay_periods = { month_days = [1, 16] }, week_starts = "monday" }
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
[[labor]]workday = "2026-10-15"measure = "tips"quantity = 25000category = "card_tips"
[expect]week = "2026-10-12"quantities = ["2026-10-15 tips 250.00 USD card_tips"]Exactly enough: 204.80 in tips with 85.20 of cash wage is exactly the 290.00 the minimum asks for 40 hours, so nothing is made up
description = "Exactly enough: 204.80 in tips with 85.20 of cash wage is exactly the 290.00 the minimum asks for 40 hours, so nothing is made up"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 9480category = "card_tips"
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 tips 94.80 USD card_tips",]The same slow week with the make-up paid in the measure wages and the category tip_credit: the 54.80 owed lands there, under the names the policy gives, and the measure pay has nothing
description = "The same slow week with the make-up paid in the measure wages and the category tip_credit: the 54.80 owed lands there, under the names the policy gives, and the measure pay has nothing"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
[[measure]]id = "wages"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 4000category = "card_tips"
# The make-up paid in the measure wages, in the category tip_credit.[[layer]]id = "make-up-names"order = 20[[layer.step]]id = "tip_credit"change = "params"params = { pay = "wages", category = "tip_credit" }
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 tips 40.00 USD card_tips", "2026-10-09 wages 54.80 USD tip_credit",]A busy week: 250.00 in tips more than cover the 204.80 the tip credit needs, so nothing is made up
description = "A busy week: 250.00 in tips more than cover the 204.80 the tip credit needs, so nothing is made up"
punch = [ { at = "2026-10-05 11:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" }, { at = "2026-10-06 11:00", kind = "in" }, { at = "2026-10-06 19:00", kind = "out" }, { at = "2026-10-07 11:00", kind = "in" }, { at = "2026-10-07 19:00", kind = "out" }, { at = "2026-10-08 11:00", kind = "in" }, { at = "2026-10-08 19:00", kind = "out" }, { at = "2026-10-09 11:00", kind = "in" }, { at = "2026-10-09 19:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[measure]]id = "tips"kind = "money"currency = "USD"
[[measure]]id = "pay"kind = "money"currency = "USD"
# Tips reported at the end of each shift, cash and card apart.[[labor]]workday = "2026-10-05"measure = "tips"quantity = 3000category = "card_tips"[[labor]]workday = "2026-10-06"measure = "tips"quantity = 2500category = "card_tips"[[labor]]workday = "2026-10-07"measure = "tips"quantity = 2000category = "cash_tips"[[labor]]workday = "2026-10-08"measure = "tips"quantity = 3500category = "card_tips"[[labor]]workday = "2026-10-09"measure = "tips"quantity = 14000category = "card_tips"
[expect]week = "2026-10-05"quantities = [ "2026-10-05 tips 30.00 USD card_tips", "2026-10-06 tips 25.00 USD card_tips", "2026-10-07 tips 20.00 USD cash_tips", "2026-10-08 tips 35.00 USD card_tips", "2026-10-09 tips 140.00 USD card_tips",]