FA-59180 / Payroll withholding rules / Member archive
Applicable minimum wage and youth rate: youth rate preemption · case 05
Young workers in states with their own minimum wage are paid the youth rate.
Case contract
Input {federal, state|None, local|None, age, days_employed, hours, paid}. Applicable rate is the highest of the defined federal, state and local minimums. A youth rate of 4.25 may replace it when age < 20, days_employed <= 90 and neither a state nor local minimum is defined. Return [rate, max(0, hours*rate - paid)].
Why this case matters
Payroll must pay the most protective minimum wage, and the youth rate exception is narrow.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | [425, 0] | [900, 0] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗