Skip to content

intermodal/calculate

  • Container free time, demurrage, billing deadlines, bill of lading dates and EDI timestamps.
  • 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: 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: Pick the two events a charge’s clock runs between.
  • freeTimeExpiry: Lay out a container’s free time from the instant its clock started, and say when it ends.
  • 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.
  • BillingDates: The dates a billing timeline is counted from: the anchor, and the invoice and request once they exist.
  • BillingDeadlines: What billingTimeline returns: each deadline as an ISO date, and each comparison once its date exists.
  • BillingWindows: The three windows the caller supplies, in calendar days, none defaulted, and an optional agreed resolution date.
  • ClockDirection: Which leg of the container’s cycle the clock is on.
  • ClockEvent: A container event: what happened and the instant it happened.
  • ClockEventType: The events a container’s charging clocks run between, named after the DCSA Track & Trace equipment events they correspond to (equipmentEventTypeCode with emptyIndicatorCode):
  • ClockOptions: The options demurrageClock reads.
  • ClockScope: Which charge is being clocked.
  • ClockStartEvent: Where an import demurrage, storage or combined clock starts, when the tariff says so.
  • FreeTime: What freeTimeExpiry returns: the free-time window as local dates, and the instant it ends.
  • FreeTimeChargeOptions: FreeTimeOptions plus how charged days are counted, and the optional tier boundaries.
  • FreeTimeCharges: What chargeableDays returns: the day count an invoice bills, and the dates that back it.
  • MultimodalJourney: What multimodalETA returns: the end-to-end ETA, with the time moving and the time waiting kept apart.
  • TierBand: A band of chargeable-day ordinals and how many of the charged days fell in it.