FAILURE MAP
← Case archive

FA-64115 / Medication dosing calculations / Member archive

Gravity drip rate and infusion end time: hourly rate conversion · case 05

The mL/h display shows mL per minute.

Member previewVariant 5 · 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
macrodrip set afternoon start{"day_offset": 0, "end": "22:25", "gtt_min": 42, "ml_h": 2.1}{"day_offset": 0, "end": "22:25", "gtt_min": 42, "ml_h": 125.0}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 ↗