Flat and usage billing
How a contract's periods, fees, allowances and tiers turn into invoice lines.
A contract's periods start on its billing day. The first period starts on the term start and may be short; each later one runs from one billing day to the day before the next. A period never runs past the term end.
Flat contracts bill each machine's fee for the period. A machine that joins or leaves mid-period is charged for its days only.
Usage contracts bill each rate's base (per machine, or once when the allowance is pooled) and the units used over the allowance. Usage for a period is the latest valid reading on or before the reading due date, less the reading the last billed period ended on, counted across meter changes. With a minimum, at least that many units are billed; with tiers, each tier's rate applies to the units from its starting point up.
When no reading comes in, the contract's no-read rule decides: Estimate bills an estimate (the machine's average daily use since its last reading) and the next actual reading trues it up; Hold the line until read leaves the line out until the reading arrives. See Estimates and true-ups.
Escalation: on the escalation date the fees, bases and rates rise by the contract's percentage, and the date moves on a year. Renew applies the escalation to the new version.