Computes detention charges from driver wait time and routes to the correct billing action, from free-time release, standard detention, and high-value carrier-relations flags. For freight billing teams working from arrival and departure timestamps.
Parity returns a Detention action — one of: No detention due, Bill detention, Flag and bill carrier relations.
| Output | Type | |
|---|---|---|
| Detention action | string | — one of: No detention due, Bill detention, Flag and bill carrier relations |
| Detention charge usd | numeric | |
| Billable minutes | numeric | |
| Action required | string |
| Input | Type | |
|---|---|---|
| Shipment id | string · required | |
| Carrier name | string · required | |
| Detained minutes | numeric · required | |
| Free time minutes | numeric · required | |
| Contracted rate per minute | numeric · required | |
| Carrier relations threshold usd | numeric · required |
Compiled, deterministic, and auditable — the logic is confirmed once by a human, then runs byte-identically every time. No spreadsheets, no code.