FAILURE MAP
← Case archive

FA-59722 / Subscription proration billing / Member archive

Current billing period containing a date: boundary date ownership · case 02

A change on a renewal date is prorated against the period that just ended.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input {anchor, interval week|month|year, count, at >= anchor}. Period k starts at anchor + k*count intervals (weeks as 7 days; months/years by calendar month with the anchor day clamped to month length). Return [start ISO, end ISO] of the period with start <= at < end.

Why this case matters

Proration needs the exact period containing a change date; boundary dates belong to the new period.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression (boundary) 0["2024-01-10", "2024-01-24"]["2024-01-24", "2024-02-07"]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 ↗