Fuel Surcharge (often abbreviated as FSC) is charge paid out to offset fuel costs to drivers based on how many miles they drove while running a load.
For completed loads, FSC is calculated against the Deadhead and Linehaul miles accrued during the load.
Restrictions:
- Spot loads do not pay FSC
- For TONU loads, only Deadhead miles are used to calculate FSC
There are two pieces to control if FSC will be calculated and added to loads:
- Pool ID must be added in Consul to the
Key/Value->vpfAutodispatchService->vpf_fuel_surcharge_pool_idslist - The
vpf.customer_fuel_surcharge_infotable holds customer rules for calculating FSC charges on loads
As of writing, only Chep loads pay out an FSC to drivers. Due to this, the current system has been built to meet the needs of how Chep pays these out by using the formula:
FSC = Qualified Miles * ((Regional Fuel Price + Customer Fuel Adjustment) / Customer Avg. Truck Fuel Economy)
The update_eia_fuel_prices cron runs once ever 12 hours and calls the the US Energy Information Administration API to update the regional fuel prices in the US.
- The cron pulls regions from the
fuel_price_regiontable - It writes the prices for regions into the
fuel_price_region_historytable - The Regional Fuel Price for a load is currently calculated based on the user's home base as saved in the
user_addresstable - If the user's home base does not align with one of our fuel regional pricings in the DB, the cron also captures the average fuel price for the entire country as a fallback.