FA-58880 / Payroll withholding rules / Member archive
Additional Medicare withholding threshold: separately rounded components · case 05
The total Medicare line is off by a cent from the sum of its two printed components.
Case contract
Input [ytd_wages, wages] in cents. Regular Medicare is 1.45% of wages rounded half-up. Additional Medicare is 0.9% of the part of this paycheck that pushes year-to-date wages above 200,000.00, rounded half-up separately. Return [medicare, additional_wages, medicare + additional].
Why this case matters
The employer must begin the extra 0.9% exactly with the paycheck that crosses the threshold, and only on the excess portion.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression 0 | [34463, 2376741, 55853] | [34463, 2376741, 55854] | 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 ↗