FAILURE MAP
← Case archive

FA-59230 / Payroll withholding rules / Member archive

Pay dates in a calendar year: inclusive end count · case 05

Every year shows one pay date fewer than the payroll calendar.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Input {anchor [y,m,d] (any pay date), step 7|14 days, year}. Pay dates are anchor + k*step for all integers k. Return [count of pay dates within Jan 1..Dec 31 of year inclusive, ISO date of the first one, whether the count exceeds the nominal periods (26 biweekly, 52 weekly)].

Why this case matters

Annualization factors change in 27-pay-period years; missing or extra pay dates distort per-period withholding.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression 0[52, "2024-01-02", false][53, "2024-01-02", true]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 ↗