gridprims

Methods: Bill check

household.bill-totals.check · Version 0.1.0

Method

Check the periods first (overlaps, duplicates, periods over 45 days, a month that reads like an extra digit, negative kWh). Then price each period on the tariff: the fixed charge, each tier's kWh at its rate, and the minimum bill, in exact micro-dollars rounded to the cent line by line. A period that crosses a season splits its kWh and tier allowances by days. Time-of-use bills are priced from the kWh in each period as the bill prints them.

Assumptions

Sources

Worked examples

ExampleIndependent sourceToleranceLast result
A tiered bill: 800 kWh with a $10.00 fixed chargehousehold/bill-totals spec, scenarios "Tiered bill" and "Effective price"±0.001, ±0.001Passed on Oct 31, 2026
A period crossing summer starthousehold/bill-totals spec, scenario "Period crosses summer start": 480 kWh at 10 cents and 420 at 14 cents±0.001Passed on Oct 31, 2026
Paid $131.40 against $115.00 computedhousehold/bill-totals spec, scenario "Paid more than computed"±0.001, ±0.001, ±0.001Passed on Oct 31, 2026

Known differences from reference engines

None recorded.

Cite this tool

Bill check, version 0.1.0. gridprims. https://gridprims.com/tools/household/bill-totals/check/

Report a problem

Tell us what looks wrong. The report holds only what you see in the preview below. Nothing is sent until you press Send.

Exactly what will be sent