# intermodal/calculate

Industry: Intermodal

- [`billingTimeline`](/gmt/reference/intermodal/calculate/billingTimeline/): Lay out the deadline chain around a demurrage or detention invoice: the last date it may be issued, the last date it may be disputed, and the last date the dispute must be resolved.
- [`chargeableDays`](/gmt/reference/intermodal/calculate/chargeableDays/): Count the days a container is charged for between the start of its clock and its exit, and list the dates behind the count.
- [`demurrageClock`](/gmt/reference/intermodal/calculate/demurrageClock/): Pick the two events a charge's clock runs between.
- [`freeTimeExpiry`](/gmt/reference/intermodal/calculate/freeTimeExpiry/): Lay out a container's free time from the instant its clock started, and say when it ends.
- [`multimodalETA`](/gmt/reference/intermodal/calculate/multimodalETA/): Compute an end-to-end ETA across the legs of a multimodal move, and report the time in transit and the time in dwell separately.

## Types

- [`BillingDates`](/gmt/reference/intermodal/calculate/billingTimeline/#billingdates): The dates a billing timeline is counted from: the anchor, and the invoice and request once they exist.
- [`BillingDeadlines`](/gmt/reference/intermodal/calculate/billingTimeline/#billingdeadlines): What `billingTimeline` returns: each deadline as an ISO date, and each comparison once its date exists.
- [`BillingWindows`](/gmt/reference/intermodal/calculate/billingTimeline/#billingwindows): The three windows the caller supplies, in calendar days, none defaulted, and an optional agreed resolution date.
- [`ClockDirection`](/gmt/reference/intermodal/calculate/demurrageClock/#clockdirection): Which leg of the container's cycle the clock is on.
- [`ClockEvent`](/gmt/reference/intermodal/calculate/demurrageClock/#clockevent): A container event: what happened and the instant it happened.
- [`ClockEventType`](/gmt/reference/intermodal/calculate/demurrageClock/#clockeventtype): The events a container's charging clocks run between, named after the DCSA Track &amp; Trace equipment events they correspond to (`equipmentEventTypeCode` with `emptyIndicatorCode`):
- [`ClockOptions`](/gmt/reference/intermodal/calculate/demurrageClock/#clockoptions): The options `demurrageClock` reads.
- [`ClockScope`](/gmt/reference/intermodal/calculate/demurrageClock/#clockscope): Which charge is being clocked.
- [`ClockStartEvent`](/gmt/reference/intermodal/calculate/demurrageClock/#clockstartevent): Where an import demurrage, storage or combined clock starts, when the tariff says so.
- [`FreeTime`](/gmt/reference/intermodal/calculate/freeTimeExpiry/#freetime): What `freeTimeExpiry` returns: the free-time window as local dates, and the instant it ends.
- [`FreeTimeChargeOptions`](/gmt/reference/intermodal/calculate/chargeableDays/#freetimechargeoptions): `FreeTimeOptions` plus how charged days are counted, and the optional tier boundaries.
- [`FreeTimeCharges`](/gmt/reference/intermodal/calculate/chargeableDays/#freetimecharges): What `chargeableDays` returns: the day count an invoice bills, and the dates that back it.
- [`MultimodalJourney`](/gmt/reference/intermodal/calculate/multimodalETA/#multimodaljourney): What `multimodalETA` returns: the end-to-end ETA, with the time moving and the time waiting kept apart.
- [`TierBand`](/gmt/reference/intermodal/calculate/chargeableDays/#tierband): A band of chargeable-day ordinals and how many of the charged days fell in it.
