The rating and settlement engine
Deterministic arithmetic, with the drafting kept outside it. Chargeable weight, tariff application, surcharge formulas, demurrage slabs and duty are computed in Python against exact decimals, and an arithmetic gate cross-foots the result before anything downstream runs. Nothing in this path is a language model, which is what makes a charge defensible when a carrier disputes it.
- Chargeable weight by the rule the mode actually uses — 6000 on air, 5000 on courier, weight-or-measure on LCL, per box on FCL
- Tariffs resolved by lane, mode, container type, commodity and date, with minimums and break points applied
- Demurrage and detention as slab arithmetic over the port calendar, so free days end on the right day
- Three exchange rates on one shipment without contradiction — the carrier tariff, the bank, and the rate notified for customs
- Every charge records the tariff line and the dated contract that produced it