FAILURE MAP
← Case archive

FA-63212 / Insurance premium rating / Member archive

Premium tax, surcharge and stamping fee allocation: Return-premium items round toward positive infinity · case 02

Refunded tax on a return premium is a cent short.

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[-187, -112, -37, -37836][-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 ↗