FA-58855 / Payroll withholding rules / Member archive
Social security wage-base withholding: remaining wage-base room · case 05
Employees already past the wage base get a negative taxable amount and a negative tax (a refund) on the paycheck.
Case contract
Input {ytd, lines:[[kind, cents]], base, exempt}. Social security wages are reg+ot+bonus+tips minus sec125 (401k deferrals do not reduce them), floored at 0. Exempt employees owe nothing ([0,0]). Taxable = min(wages, max(0, base-ytd)); tax = 6.2% rounded half-up to the cent. Return [taxable, tax].
Why this case matters
Employee social security withholding must stop exactly at the annual wage base and use the FICA wage definition, not the income-tax one.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | [-562, -35] | [0, 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 ↗