Pay rising with hours worked (apprenticeship rungs, union steps)
The rule
- An apprentice (or a member on a union’s step scale) is paid by rung. Each rung starts once the hours worked to date in the classification reach its number: here the second rung from 1,000 hours, the third from 2,000 and the fourth from 3,000.
- Hours count only while the person is in the classification. Hours credited from before (another program, an earlier employer) count from the start.
- A rung reached during a pay period is paid from the next one.
Who uses it
Registered apprenticeship programs in the building trades (electricians, plumbers, carpenters), and collective agreements whose wage steps follow hours worked rather than time in the job.
How the recipe does it
Configuration only: a package (package.toml) whose people are paid
weekly at the rate their work matches, and a layer for electrician
apprentices with two standard steps.
[[layer]]id = "pay"settings = { pay_periods = { every_days = 7, from = "2026-09-28" }, accruals = { since = "2026-09-28" } }[[layer.step]]id = "pay"uses = "standard/earnings"params = { rate = "pay", measure = "pay", premiums = { work = 100 } }
[[layer]]id = "electrician-apprentices"applies_to = "attributes.classification = electrician_apprentice"[[layer.step]]id = "hours-to-date"uses = "standard/accrue"params = { category = "electrician_apprentice_hours", earn = "1h", per = "1h" }[[layer.step]]id = "rung"uses = "standard/rate_by_hours"params = { balance = "electrician_apprentice_hours", rungs = ["1000h", "2000h", "3000h"] }- The hours to date are a balance, as a leave balance is: an accrual
category the tenant sets up (
electrician_apprentice_hours, drawn down by nothing), to whichaccrueadds an hour for each hour worked on the days the layer applies, that is, while the person’s employment attributeclassificationiselectrician_apprentice. Closing a period carries it forward, so no year of hours is ever counted again. A hand adjustment credits hours from before. - The rung rates are the tenant’s rates, each naming the same work (here
job = electrician), so they tie.rate_by_hourschooses among them: the lowest for the first rung, the next higher for each rung reached, by the balance as the pay period starts.earningsthen pays each hour at the rate chosen.
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 balance called
electrician_apprentice_hours: an accrual category. The recipe earns into it, takes from it or reads it. - A measure called
pay: 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
| Step | Parameter | Meaning |
|---|---|---|
hours-to-date | category | The accrual category that holds the hours to date. |
hours-to-date | earn, per | An hour for each hour: "1h" and "1h". |
hours-to-date | counts | Not set: every worked category, overtime too. |
rung | balance | The accrual category of the hours to date. |
rung | rungs | Where each rung after the first starts, rising: ["1000h", "2000h", "3000h"]. |
rung | kind | The kind of rate it chooses (pay). |
What the scenarios show
a-rung-reached-is-paid-from-the-next-pay-period: 960 hours credited and a 40-hour week reach 1,000; the next week is paid at the second rung.hours-credited-from-before: 2,500 hours credited start at the third rung.only-hours-in-the-classification-count: a laborer’s hours before the change of classification are not counted.
Legal note
This is a common way employers implement wage progression by hours worked; check the apprenticeship standards and the collective agreement that apply. Which hours count (overtime, related instruction, hours from before), when a new rung takes effect, and any ratio of apprentice to journeyworker pay are theirs to decide, and prevailing wage work may set its own rates.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/pay_rate_by_hours_worked. 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 = "pay_rate_by_hours_worked"version = "1.0.0"description = "Pay rising with hours worked (apprenticeship rungs, union steps) - the rate in effect is the rung the hours worked to date in the classification reached, every 1,000 hours, paid from the pay period after a rung is reached."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]accrual_categories = ["electrician_apprentice_hours"]measures = ["pay"]
# Paid weekly. Every hour is paid at the rate its work matches.[[layer]]id = "pay"settings = { pay_periods = { every_days = 7, from = "2026-09-28" }, accruals = { since = "2026-09-28" } }[[layer.step]]id = "pay"uses = "standard/earnings"params = { rate = "pay", measure = "pay", premiums = { work = 100 } }
# Electrician apprentices (employment attribute classification): every# hour worked in the classification adds an hour to the balance of hours# to date, and the electrician rates that tie are chosen by the rung that# balance reached as the pay period starts: from 1,000, 2,000 and 3,000# hours, the second, third and fourth.[[layer]]id = "electrician-apprentices"applies_to = "attributes.classification = electrician_apprentice"[[layer.step]]id = "hours-to-date"uses = "standard/accrue"params = { category = "electrician_apprentice_hours", earn = "1h", per = "1h" }[[layer.step]]id = "rung"uses = "standard/rate_by_hours"params = { balance = "electrician_apprentice_hours", rungs = ["1000h", "2000h", "3000h"] }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
An apprentice with 960 hours credited works 40 hours in the week from September 28: still under 1,000 as the week starts, so the first rung's 20.00 an hour; the week's hours bring the balance to 1,000, and the next week is paid at the second rung's 22.00
description = "An apprentice with 960 hours credited works 40 hours in the week from September 28: still under 1,000 as the week starts, so the first rung's 20.00 an hour; the week's hours bring the balance to 1,000, and the next week is paid at the second rung's 22.00"
punch = [ { at = "2026-09-28 07:00", kind = "in" }, { at = "2026-09-28 15:00", kind = "out" }, { at = "2026-09-29 07:00", kind = "in" }, { at = "2026-09-29 15:00", kind = "out" }, { at = "2026-09-30 07:00", kind = "in" }, { at = "2026-09-30 15:00", kind = "out" }, { at = "2026-10-01 07:00", kind = "in" }, { at = "2026-10-01 15:00", kind = "out" }, { at = "2026-10-02 07:00", kind = "in" }, { at = "2026-10-02 15:00", kind = "out" }, { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 15:00", kind = "out" },]
[policy]zone = "America/Chicago"
[defaults]employee = { job = "electrician" }
[[employment]]effective = "2026-01-05"kind = "hired"attributes = { classification = "electrician_apprentice" }
[[measure]]id = "pay"kind = "money"currency = "USD"
[[accrual_category]]id = "electrician_apprentice_hours"uses = []
[[accrual_adjustment]]category = "electrician_apprentice_hours"workday = "2026-09-28"amount = "960h"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2000currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2200currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2400currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2600currency = "USD"
[expect.period]day = "2026-09-28"quantities = ["2026-10-02 pay 800.00 USD work job=electrician"]balances = { electrician_apprentice_hours = "1000h" }
[expect]week = "2026-10-05"quantities = ["2026-10-05 pay 176.00 USD work job=electrician"]An apprentice joining with 2,500 hours credited from another program (a hand adjustment before the first week) starts at the third rung, 24.00 an hour
description = "An apprentice joining with 2,500 hours credited from another program (a hand adjustment before the first week) starts at the third rung, 24.00 an hour"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 15:00", kind = "out" },]
[policy]zone = "America/Chicago"
[defaults]employee = { job = "electrician" }
[[employment]]effective = "2026-09-28"kind = "hired"attributes = { classification = "electrician_apprentice" }
[[measure]]id = "pay"kind = "money"currency = "USD"
[[accrual_category]]id = "electrician_apprentice_hours"uses = []
[[accrual_adjustment]]category = "electrician_apprentice_hours"workday = "2026-09-28"amount = "2500h"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2000currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2200currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2400currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2600currency = "USD"
[expect]week = "2026-10-05"quantities = ["2026-10-05 pay 192.00 USD work job=electrician"]A laborer becomes an electrician apprentice on Wednesday: Monday's and Tuesday's 16 hours as a laborer (paid at the laborer's own rate) are no hours in the classification, so the balance of hours to date is the 24 worked from Wednesday
description = "A laborer becomes an electrician apprentice on Wednesday: Monday's and Tuesday's 16 hours as a laborer (paid at the laborer's own rate) are no hours in the classification, so the balance of hours to date is the 24 worked from Wednesday"
punch = [ { at = "2026-09-28 07:00", kind = "in", values = { job = "laborer" } }, { at = "2026-09-28 15:00", kind = "out" }, { at = "2026-09-29 07:00", kind = "in", values = { job = "laborer" } }, { at = "2026-09-29 15:00", kind = "out" }, { at = "2026-09-30 07:00", kind = "in", values = { job = "electrician" } }, { at = "2026-09-30 15:00", kind = "out" }, { at = "2026-10-01 07:00", kind = "in", values = { job = "electrician" } }, { at = "2026-10-01 15:00", kind = "out" }, { at = "2026-10-02 07:00", kind = "in", values = { job = "electrician" } }, { at = "2026-10-02 15:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[employment]]effective = "2026-01-05"kind = "hired"attributes = { classification = "laborer" }
[[employment]]effective = "2026-09-30"kind = "changed"attributes = { classification = "electrician_apprentice" }
[[measure]]id = "pay"kind = "money"currency = "USD"
[[accrual_category]]id = "electrician_apprentice_hours"uses = []
[[rate]]kind = "pay"matches = { job = "laborer" }amount = 1800currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2000currency = "USD"
[[rate]]kind = "pay"matches = { job = "electrician" }amount = 2200currency = "USD"
[expect.period]day = "2026-09-28"quantities = [ "2026-09-29 pay 288.00 USD work job=laborer", "2026-10-02 pay 480.00 USD work job=electrician",]balances = { electrician_apprentice_hours = "24h" }