omni_deadhead_trucking_cost
Calculates true cost per loaded mile, deadhead mileage impact, lane profit, and minimum breakeven freight rate from loaded and empty miles plus operating cost.
Instructions
Deadhead Trucking Mileage Cost & Lane Profitability Calculator. Calculate true cost per loaded mile, deadhead uncompensated empty mileage impact, and minimum required freight rate for motor carriers and owner-operators. Discipline: LOGISTICS. Governing mathematical model / formula: True Rate per Loaded Mile = (Loaded Miles × Base Cost + Deadhead Miles × Operating Cost) / Loaded Miles.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of net_lane_profit (Net Profit / Loss for Trip), true_all_miles_rate (True Revenue Per Total Mile), breakeven_linehaul_rate (Minimum Breakeven Quote), deadhead_percentage (Deadhead Mileage Ratio) using loaded_miles (Loaded Revenue Miles in miles), deadhead_miles (Empty Deadhead Miles in miles), operating_cost_per_mile (Truck Operating Cost ($/Mile)), quoted_linehaul_rate (Gross Linehaul Rate Offered ($)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Deadhead Trucking Mileage Cost & Lane Profitability Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "deadhead-trucking-cost"
category (string): "logistics"
name (string): "Deadhead Trucking Mileage Cost & Lane Profitability Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.net_lane_profit (Net Profit / Loss for Trip): Formatted display string (e.g. '$344.00')
metrics.true_all_miles_rate (True Revenue Per Total Mile): Formatted display string (e.g. '$2.30 / mile')
metrics.breakeven_linehaul_rate (Minimum Breakeven Quote): Formatted display string (e.g. '$1,406.00')
metrics.deadhead_percentage (Deadhead Mileage Ratio): Formatted display string (e.g. '14.5% of Total Miles')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_deadhead_trucking_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loaded_miles | No | Loaded Revenue Miles (miles). Miles driven with billable freight in trailer. Default: 650. Min: 25. Max: 3500. | |
| deadhead_miles | No | Empty Deadhead Miles (miles). Unpaid empty miles driven to pick up cargo. Default: 110. Min: 0. Max: 1000. | |
| quoted_linehaul_rate | No | Gross Linehaul Rate Offered ($). Total shipper payment for the haul. Default: 1750. Min: 100. Max: 10000. | |
| operating_cost_per_mile | No | Truck Operating Cost ($/Mile). Diesel fuel, driver wage, truck payment, tires, insurance. Default: 1.85. Min: 1. Max: 3.5. |