FAILURE MAP
← Case archive

FA-58852 / Payroll withholding rules / Member archive

Social security wage-base withholding: remaining wage-base room · case 02

Employees already past the wage base get a negative taxable amount and a negative tax (a refund) on the paycheck.

Member previewVariant 2 · 3 implementations · 10 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression 0[-2120, -131][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 ↗