FAILURE MAP
← Case archive

FA-63207 / Insurance premium rating / Member archive

Premium tax, surcharge and stamping fee allocation: Billed total is recomputed from unrounded items · case 02

The invoice total does not equal the sum of its itemised lines.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input premium (may be negative for return premium), policy_fee, inspection_fee, tax, surcharge, stamping (per mille). Tax applies to premium+policy fee; surcharge to premium only; stamping to premium+both fees. Each item is rounded half away from zero separately; return [tax, surcharge, stamping, total billed].

Why this case matters

Tax and fee bases differ item by item, and each item is filed and remitted separately.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
return premium tie[-188, -113, -38, -37838][-188, -113, -38, -37839]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 ↗