FAILURE MAP
← Case archive

FA-64118 / Medication dosing calculations / Member archive

Gravity drip rate and infusion end time: midnight crossing day offset · case 03

An infusion finishing exactly at 00:00 is reported as ending today.

Member previewVariant 3 · 3 implementations · 6 checks per implementation

Case contract

Input {volume_ml, duration_min, drop_factor (gtt/mL), start "HH:MM" 24-hour}. drops/min = volume*drop_factor/duration rounded half-up to a whole drop; mL/h = volume*60/duration rounded half-up to 0.1; end = start + duration on a 24-hour clock with day_offset = number of midnights crossed (ending exactly at 00:00 counts as the next day). Return {gtt_min, ml_h, end, day_offset}.

Why this case matters

Manual gravity infusions depend on drop-factor arithmetic and clock arithmetic across midnight, each with its own failure modes.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
multi-day infusion{"day_offset": 1, "end": "16:15", "gtt_min": 39, "ml_h": 39.2}{"day_offset": 2, "end": "16:15", "gtt_min": 39, "ml_h": 39.2}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 ↗