Prevailing wage on public works
The rule
On a public works project covered by a prevailing wage law (the federal Davis-Bacon Act, or a state’s), each job classification has a base rate and a fringe rate. Every hour worked on the project in a classification is paid at least that base rate. The fringe is owed for every hour as well: the employer meets it with benefits it pays for the worker (health cover, a pension), with pay above the base, or with cash. Overtime is one and a half times the base rate; the fringe is not multiplied.
A worker may work covered and uncovered jobs in one day, and several classifications in one week. Each hour is paid by what it was.
Who uses it
Contractors and subcontractors on government construction: building, road, bridge and utility work, and the trades that do it (electricians, carpenters, laborers, operators).
How the recipe does it
Configuration and data. The rate tables are rates the tenant loads, effective-dated, as a location’s minimum wage is:
- a rate of the kind
prevailing_basefor each project and classification,matches = { project = "bridge-12", classification = "electrician" }, and one of the kindprevailing_fringebeside it; - a new wage determination is a new rate from its first day (
from), the old one ending the day before (to); - each person’s own pay rate (
pay) and the benefits their employer pays an hour (benefits), as rates of the person’s setup.
The project and classification are the work’s labor context: given at the clock when the person punches in or transfers, or with a labor entry.
The package’s layer pays weekly, from a Monday, and chains two business rules:
[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]id = "prevailing"uses = "standard/prevailing_wage"params = { base = "prevailing_base", fringe = "prevailing_fringe", benefits = "benefits", rate = "pay", premiums = { work = 100, overtime = 150 }, pay = "wages", category = "prevailing_makeup", fringe_category = "fringe_cash" }Each week, every hour whose context matches a base rate is worked out on
its own: the base times its category’s per cent (overtime 150), against
the pay rate times the same per cent; and the fringe, less the benefits
and less the pay rate above the base, at straight time. What the base is
short is added as money in prevailing_makeup; what the fringe is short,
as cash in fringe_cash. Each carries the work’s context, so the
certified payroll export (certified_payroll) writes it under its
project and classification. Hours on work with no base rate owe nothing.
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 |
|---|---|
base | The rate kind of the project’s base rate, matched on the work’s context. |
fringe | The rate kind of the fringe an hour. Without it, only the base is made up. |
benefits | The rate kind of what the employer’s benefit plans pay an hour, credited against the fringe. |
rate | The rate kind the hours are paid at. |
premiums | The categories that are hours on the project, and each one’s per cent of the base. |
pay | The money measure the make-up is added in. |
category | The category of what the base is short. |
fringe_category | The category of the fringe paid as cash. |
What the scenarios show
each-hour-pays-by-the-work-it-was: two days as an electrician, a day as a laborer on the same project and a day in the shop: 240.00 of base and 240.00 of fringe for the electrician’s hours, 40.00 of fringe for the laborer’s, nothing for the shop’s.overtime-is-on-the-base-and-the-fringe-is-not-multiplied: 45 hours, 5 of them overtime at 67.50 an hour, owe 712.50 of base; the fringe’s cash is 15.00 for each of the 45 hours.a-new-wage-determination-from-a-day: the base rises from 45.00 to 47.00 on Wednesday; each day’s hours are made up to the rate of their day.covered-and-uncovered-work-in-one-day: a transfer to the shop at 11:00 leaves 4 covered hours.pay-and-benefits-above-the-rates-owe-nothing: pay 5.00 above the base and 15.00 of benefits meet the 20.00 fringe.
Legal note
This is a common way contractors apply prevailing wage rates; check the rules where you operate. Which wage determination applies to a project, how benefits are credited (annualized or by the hour), whether pay above the base may meet the fringe, and the overtime rules of each law differ: the rate tables and the parameters say them. Time and Attendance works out the labor cost and hands it to payroll, which pays it.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/prevailing_wage. 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 = "prevailing_wage"version = "1.0.0"description = "Hours on a covered public works project are paid at least the project's base rate for the classification worked, overtime at one and a half times the base, and the fringe for every hour, met by benefits or paid as cash."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]measures = ["wages"]
# Weekly pay periods from a Monday: a certified payroll is weekly.# Past 40 hours a week is overtime. Each hour is paid at the person's own# rate; the hours on a covered project are made up to the project's base# rate for the classification worked (overtime at 150 per cent of it), and# the fringe, less the benefits paid for the hour, is paid as cash.[[layer]]id = "prevailing-wage"settings = { pay_periods = { every_days = 7, from = "2026-10-05" }, week_starts = "monday" }[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]id = "prevailing"uses = "standard/prevailing_wage"params = { base = "prevailing_base", fringe = "prevailing_fringe", benefits = "benefits", rate = "pay", premiums = { work = 100, overtime = 150 }, pay = "wages", category = "prevailing_makeup", fringe_category = "fringe_cash" }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 tenant's rate table has the electrician's base on bridge-12 at 45.00 through Tuesday and 47.00 from Wednesday, when a new wage determination takes effect; the fringe stays 20.00. Paid 30.00 with 5.00 in benefits, Monday and Tuesday's 16 hours are 15.00 short, 240.00, and Wednesday's 8 are 17.00 short, 136.00: 376.00. The fringe's cash is 15.00 for 24 hours, 360.00
description = "The tenant's rate table has the electrician's base on bridge-12 at 45.00 through Tuesday and 47.00 from Wednesday, when a new wage determination takes effect; the fringe stays 20.00. Paid 30.00 with 5.00 in benefits, Monday and Tuesday's 16 hours are 15.00 short, 240.00, and Wednesday's 8 are 17.00 short, 136.00: 376.00. The fringe's cash is 15.00 for 24 hours, 360.00"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-05 15:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-06 15:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-07 15:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 3000currency = "USD"
[[rate]]kind = "benefits"amount = 500currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4500currency = "USD"to = "2026-10-06"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4700currency = "USD"from = "2026-10-07"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "electrician" }amount = 2000currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-07 wages 360.00 USD fringe_cash classification=electrician project=bridge-12", "2026-10-07 wages 376.00 USD prevailing_makeup classification=electrician project=bridge-12",]The worker starts the day on bridge-12 as an electrician (base 45.00, fringe 20.00) and transfers at 11:00 to the shop, a project with no prevailing rates. Paid 30.00 with 5.00 in benefits, the 4 hours on the project are 15.00 short of the base, 60.00, and owe 15.00 of fringe in cash, 60.00; the shop's 4 hours owe nothing
description = "The worker starts the day on bridge-12 as an electrician (base 45.00, fringe 20.00) and transfers at 11:00 to the shop, a project with no prevailing rates. Paid 30.00 with 5.00 in benefits, the 4 hours on the project are 15.00 short of the base, 60.00, and owe 15.00 of fringe in cash, 60.00; the shop's 4 hours owe nothing"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-05 11:00", kind = "transfer", values = { project = "shop" } }, { at = "2026-10-05 15:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 3000currency = "USD"
[[rate]]kind = "benefits"amount = 500currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4500currency = "USD"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "electrician" }amount = 2000currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-05 wages 60.00 USD fringe_cash classification=electrician project=bridge-12", "2026-10-05 wages 60.00 USD prevailing_makeup classification=electrician project=bridge-12",]Paid 30.00 an hour, with 5.00 an hour in benefits, the worker spends Monday and Tuesday on bridge-12 as an electrician (base 45.00, fringe 20.00), Wednesday on it as a laborer (base 28.00, fringe 12.00), and Thursday in the shop, which is no covered project. The electrician's 16 hours are 15.00 short of the base, 240.00, and owe 15.00 of fringe in cash, 240.00. The laborer's 8 hours are paid above the base; the 2.00 above it and the benefits leave 5.00 of fringe, 40.00. The shop's hours owe nothing
description = "Paid 30.00 an hour, with 5.00 an hour in benefits, the worker spends Monday and Tuesday on bridge-12 as an electrician (base 45.00, fringe 20.00), Wednesday on it as a laborer (base 28.00, fringe 12.00), and Thursday in the shop, which is no covered project. The electrician's 16 hours are 15.00 short of the base, 240.00, and owe 15.00 of fringe in cash, 240.00. The laborer's 8 hours are paid above the base; the 2.00 above it and the benefits leave 5.00 of fringe, 40.00. The shop's hours owe nothing"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-05 15:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-06 15:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in", values = { project = "bridge-12", classification = "laborer" } }, { at = "2026-10-07 15:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in", values = { classification = "electrician" } }, { at = "2026-10-08 15:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 3000currency = "USD"
[[rate]]kind = "benefits"amount = 500currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4500currency = "USD"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "electrician" }amount = 2000currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "laborer" }amount = 2800currency = "USD"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "laborer" }amount = 1200currency = "USD"
[expect]week = "2026-10-05"quantities = [ "2026-10-06 wages 240.00 USD fringe_cash classification=electrician project=bridge-12", "2026-10-06 wages 240.00 USD prevailing_makeup classification=electrician project=bridge-12", "2026-10-07 wages 40.00 USD fringe_cash classification=laborer project=bridge-12",]Nine hours a day for five days on bridge-12 as an electrician (base 45.00, fringe 20.00), paid 30.00 an hour with 5.00 in benefits: 45 hours, the last 5 overtime. The 40 straight hours are 15.00 short of the base, 600.00; each overtime hour is owed 67.50, one and a half times the base, and paid 45.00, 112.50 short. The fringe is owed for every hour at its own 20.00, never multiplied: 15.00 in cash for 45 hours, 675.00
description = "Nine hours a day for five days on bridge-12 as an electrician (base 45.00, fringe 20.00), paid 30.00 an hour with 5.00 in benefits: 45 hours, the last 5 overtime. The 40 straight hours are 15.00 short of the base, 600.00; each overtime hour is owed 67.50, one and a half times the base, and paid 45.00, 112.50 short. The fringe is owed for every hour at its own 20.00, never multiplied: 15.00 in cash for 45 hours, 675.00"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-05 16:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-06 16:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-07 16:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-08 16:00", kind = "out" }, { at = "2026-10-09 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-09 16:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 3000currency = "USD"
[[rate]]kind = "benefits"amount = 500currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4500currency = "USD"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "electrician" }amount = 2000currency = "USD"
[expect]week = "2026-10-05"allocations = [ "2026-10-05 07:00-16:00 work 9.00 classification=electrician project=bridge-12", "2026-10-06 07:00-16:00 work 9.00 classification=electrician project=bridge-12", "2026-10-07 07:00-16:00 work 9.00 classification=electrician project=bridge-12", "2026-10-08 07:00-16:00 work 9.00 classification=electrician project=bridge-12", "2026-10-09 07:00-11:00 work 4.00 classification=electrician project=bridge-12", "2026-10-09 11:00-16:00 overtime 5.00 classification=electrician project=bridge-12",]quantities = [ "2026-10-09 wages 675.00 USD fringe_cash classification=electrician project=bridge-12", "2026-10-09 wages 712.50 USD prevailing_makeup classification=electrician project=bridge-12",]Paid 50.00 an hour, 5.00 above the electrician's 45.00 base on bridge-12, with 15.00 an hour in benefits: the 5.00 above the base and the benefits meet the 20.00 fringe, and a day on the project owes nothing more
description = "Paid 50.00 an hour, 5.00 above the electrician's 45.00 base on bridge-12, with 15.00 an hour in benefits: the 5.00 above the base and the benefits meet the 20.00 fringe, and a day on the project owes nothing more"
punch = [ { at = "2026-10-05 07:00", kind = "in", values = { project = "bridge-12", classification = "electrician" } }, { at = "2026-10-05 15:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[measure]]id = "wages"kind = "money"currency = "USD"
[[rate]]kind = "pay"amount = 5000currency = "USD"
[[rate]]kind = "benefits"amount = 1500currency = "USD"
[[rate]]kind = "prevailing_base"matches = { project = "bridge-12", classification = "electrician" }amount = 4500currency = "USD"
[[rate]]kind = "prevailing_fringe"matches = { project = "bridge-12", classification = "electrician" }amount = 2000currency = "USD"
[expect]week = "2026-10-05"worked = "8h"quantities = []