Calculate Lost In Transit Status

This action calculates the number of days since the last event date and determines whether a package is lost in transit. The package is considered "lost" if the number of days since the last event exceeds or is equal to the specified Lost Threshold.

Inputs

NameTypeDescription
Last Event DatestringThe date of the last known tracking event (format: YYYY-MM-DD).
Lost ThresholdnumberThe number of days after which a package is considered lost if no updates have occurred.
Count Business Days?booleanIf true, only business days (Mon–Fri) are counted when calculating days since the last event.

Outputs

NameTypeDescription
Days Since Last Event DatestringThe total number of days (calendar or business) since the last tracking event occurred.
Lost In Transit?booleanReturns true if the days since the last event date is greater than or equal to the lost threshold.