Computes margin per load (revenue minus carrier cost, and margin %), rolled up by lane with totals and overall margin — the margin report a freight broker lives in. For freight brokers working from a load/TMS export.
Parity builds Load Profitability Register — a register with columns like Threshold applied, Report scope, Load lines, By lane, Total revenue usd, plus computed totals.
| Output | Type | |
|---|---|---|
| Threshold applied | string | — one of: Yes, No |
| Report scope | string | — one of: Filtered by minimum, All loads |
| Load lines | array | |
| By lane | object | |
| Total revenue usd | numeric | |
| Total carrier cost usd | numeric | |
| Total margin usd | numeric | |
| Overall margin pct | numeric |
| Input | Type | |
|---|---|---|
| Min revenue usd | numeric · required | |
| Period label | string · required | |
| Loads | array · required |
Compiled, deterministic, and auditable — the logic is confirmed once by a human, then runs byte-identically every time. No spreadsheets, no code.