# Billing Deadlines

Industry: Intermodal

**Key point — demurrage and detention invoices**

A billing deadline is a date, not an instant. Each one is counted in calendar days from day zero, and the deadline day itself is inside the window.

Every deadline counts from the anchor: the date you choose as day zero. The
three windows — issue, dispute, resolve — are yours, and none is defaulted. A blank window is left out of the call, and the result names which
one is missing and says why it is `null`.

Lane 1 is the issue window, lane 2 the dispute window and lane 3 the resolution
window. Each has its own pattern and number. The anchor, the invoice date and the
request date are marked A, I and R, so the strip reads without relying on
colour. Three plates above the strip give the deadlines in words, numbered as the lanes
are: issue by, dispute by and resolve by. Each shows the date the library
returned and the window you typed. A deadline the library does not hold reads
"not set". The strip draws what [`billingTimeline`](/gmt/reference/intermodal/calculate/billingTimeline/) returned; nothing here
computes a deadline.

**Worth trying:** [the same 30-day windows, invoiced one day
later](/gmt/tools/billing-deadlines/?w=billing&wa=%7B%22anchorOn%22%3A%222026-03-01%22%2C%22invoiceIssuedOn%22%3A%222026-04-01%22%2C%22issueDays%22%3A%2230%22%2C%22disputeDays%22%3A%2230%22%2C%22resolutionDays%22%3A%2230%22%7D) —
the invoice deadline does not move, but the verdict turns to after the
deadline. Then [a contract with 14 days to issue, 14 to dispute and 45 to resolve, and the
request moved to 20 March](/gmt/tools/billing-deadlines/?w=billing&wa=%7B%22anchorOn%22%3A%222026-03-01%22%2C%22invoiceIssuedOn%22%3A%222026-03-05%22%2C%22requestReceivedOn%22%3A%222026-03-20%22%2C%22issueDays%22%3A%2214%22%2C%22disputeDays%22%3A%2214%22%2C%22resolutionDays%22%3A%2245%22%7D) —
one day past the 14-day dispute deadline, and the request verdict turns to
after the deadline while the resolution deadline stays `null`.

Reference: [`billingTimeline`](/gmt/reference/intermodal/calculate/billingTimeline/)
lays out the chain; [`convertUtcToPlainDate`](/gmt/reference/utc/convert/convertUtcToPlainDate/)
reduces an instant to the billing party's local date before it is passed in.
The rules for reading the strip are in
[Intermodal: Billing Deadlines](/gmt/guides/industries/intermodal-billing-deadlines/).
