How the math works
Add the fixed costs for a month: payments, insurance, and the other bills that arrive whether the truck moves or not. Add the variable costs: fuel, which is the diesel price divided by miles per gallon for every mile, plus maintenance and tires per mile, plus tolls and trip costs. If you want your own pay counted, add it. Divide the total by every mile the truck ran, empty miles included.
That figure is the break-even cost per mile. Loaded miles are the ones that pay, so the second result spreads the same monthly bill over loaded miles only. It is the rate a load has to beat per loaded mile if the empty miles stay at the share you entered. For one specific trip, compare it with the true rate per mile, which already includes the deadhead to the pickup.
What to include
Use bills and statements, not memory. Count yearly costs once and divide them by twelve. If you pay a dispatcher a percentage, that fee comes out of each load, so test it separately with the dispatch fee calculator or run a full trip through the load profit calculator.
The result is a planning number. Fuel prices, repairs, and empty miles change from month to month, so recalculate when they do.