FAILURE MAP
← Case archive

FA-58982 / Payroll withholding rules / Member archive

Tip credit and minimum-wage makeup: negative credit floor · case 02

Employees paid a cash rate above minimum wage get negative makeup and inflated wages.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input weekly {hours, cash_rate, tips, min_wage (even cents), tip_credit_max}. Tip credit per hour = max(0, min(min_wage - cash_rate, tip_credit_max)). Hours over 40 are paid at 1.5*min_wage minus the same credit. Credit actually taken = min(tips, hours*credit); the unmet credit is paid as makeup. Return [cash_wages, makeup].

Why this case matters

Tip credits are capped by tips actually received and do not grow on overtime hours.

One recorded failure

Sample boundary fixture

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

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