Billing periods and cadence
Two separate questions determine when a contract is billed:
- How often? → the interval, which is a property of each charge.
- Starting from which date? → the anchor, which is a property of the contract.
Keeping them separate is what lets a single contract have a monthly platform fee and an annual license without the periods falling out of alignment.
Intervals
Sección titulada «Intervals»Each charge declares its billing interval:
| Interval | Frequency |
|---|---|
ONE_TIME |
Once, with no recurrence |
WEEKLY |
Weekly |
MONTHLY |
Monthly |
QUARTERLY |
Quarterly |
SEMIANNUAL |
Semiannual |
YEARLY |
Yearly |
The contract anchor
Sección titulada «The contract anchor»The anchor is declared as three explicit fields: day, month and year.
| Field | Range | What it determines |
|---|---|---|
day |
1–31 | The day of the month on which the cycle cuts over. With no value, it cuts over on the 1st |
month |
1–12 | The reference month for cadences longer than one month |
year |
year | The reference year from which the anchored cycle is projected |
Day 31 does not drift
Sección titulada «Day 31 does not drift»An anchor on the 31st adjusts to the actual last day of each month: January 31 → February 28 (or 29) → March 31. It does not drag the cutover to the 28th in the following months. A contract anchored to month-end stays anchored to month-end all year.
Anchored quarterly vs. calendar quarterly
| Configuration | Periods it produces |
|---|---|
QUARTERLY, no month |
Jan–Mar · Apr–Jun · Jul–Sep · Oct–Dec |
QUARTERLY, month = 2, day = 15, year = 2026 |
Feb 15–May 14 · May 15–Aug 14 · Aug 15–Nov 14 · … |
The second case is a contract negotiated on February 15 whose customer expects the cycle to respect that date, not the fiscal calendar.
One anchor per contract
Sección titulada «One anchor per contract»There is only one anchor per contract. What varies per charge is the interval, not the cutover date.
Period identity
Sección titulada «Period identity»Interval and anchor together form a charge’s period identity. Two charges with the same identity produce exactly the same period boundaries, which is why they can be grouped into the same calculation and the same invoice.
That identity is derived from the configuration, not from the moment the process runs: a billing cycle can be rerun tomorrow, next week or during an audit, and it produces the same period.
In advance and in arrears within the same period
Sección titulada «In advance and in arrears within the same period»The interval defines the window; pay_in_advance defines which end of that window the charge is billed at. A typical monthly contract bills the platform fee when the period opens and usage when it closes, and both amounts end up on the same invoice.
Changing the cadence
Sección titulada «Changing the cadence»The cadence of a period that has already closed is not modified. A change of interval or anchor is a change to future terms, and it is recorded as an amendment with an effective date. See Contracts and phases.