Calculate Estimated Delivery Date

Works out an estimated delivery date and a delivery status (On Track, Delayed or Lost) from an order's dates and your delivery rules. Use it to set expectations on when a parcel should arrive and to flag orders that are running late.

Works out an estimated delivery date and a delivery status (On Track, Delayed or Lost) from an order's dates and your delivery rules. Use it to set expectations on when a parcel should arrive and to flag orders that are running late.

What it does

  • Takes the order date (or shipping date) and your thresholds to estimate the earliest, latest and a single estimated delivery date.
  • Can count calendar days or business days only, optionally skipping public holidays for a given country and your chosen working week.
  • Returns a delivery status based on how long the order has been in transit.
  • Supports peak-season adjustments and whether delivery can happen on non-business days.

This action runs on its own logic and needs no external connection.

Inputs

NameTypeRequiredDescription
Order DateStringYesOrder creation date
Last Updated DateStringNoLast updated date. Defaults to the order date
Shipping DateStringNoShipping date. Defaults to the order date
On Track Threshold TimeStringNoDays within which the order is considered on track. Default: 2
Delayed Threshold TimeNumberNoDays after which the order is considered delayed. Default: On Track + 2
Lost Threshold TimeNumberNoDays in transit after which the parcel is considered lost. Default: Delayed + 2
Peak Season Time AdjustmentNumberNoExtra days added to the status times. Default: 0
Country CodeStringNoCountry to consider public holidays for. Use None to ignore holidays. Accepts standard ISO country codes
Working Week DaysListNoWorking days of the week. Default: Monday to Friday
TimezoneStringNoTimezone for the calculation. Accepts standard IANA timezones (e.g. Europe/London). Defaults to the order's timezone or UTC
Count Non Business DaysBooleanNoWhether to count non-business days in the calculation. Default: false
Delivery on Non Business DayBooleanNoWhether delivery can happen on non-business days. Default: false
Calculate EDD Based on Shipping DateBooleanNoWhether to base the estimate on the shipping date instead of the order date. Default: false

Outputs

NameTypeDescription
SuccessBooleanWhether a date was calculated and it is in the future
Estimated Delivery Date Generated?BooleanWhether an estimated delivery date was produced
Estimated Delivery DateStringThe estimated delivery date (YYYY-MM-DD)
Minimum Estimated Delivery DateStringEarliest estimated delivery date (YYYY-MM-DD)
Maximum Estimated Delivery DateStringLatest estimated delivery date (YYYY-MM-DD)
Current DateStringCurrent date used in the calculation
Order DateStringOrder creation date used
Updated DateStringLast updated date used
TimezoneStringTimezone applied
Days Since Order DateNumberCalendar days since the order date
Business Days Since Order DateNumberBusiness days since the order date
Calendar Days StatusStringStatus based on calendar days. Possible values: On Track, Delayed, Lost.
Business Days StatusStringStatus based on business days. Possible values: On Track, Delayed, Lost.
Days Since Updated DateNumberCalendar days since the last update
Business Days Since Updated DateNumberBusiness days since the last update
Lost in TransitBooleanWhether the order is considered lost in transit

Notes

  • All dates are returned in YYYY-MM-DD format.
  • If no country code is provided, public holidays are not considered.
  • Times use the provided timezone, falling back to the order's timezone or UTC.