Compliance → IFTA → Miles by state rebuilds a quarter's miles per state from records DispatchDeck already has: the permits on file, the job destinations on the board, and odometer readings. This page explains how each number is worked out, what it leaves out, and how to use it.
Page version 1.0 · 2026-11-11 · describes report method 2026-10-11
What it is, and what it isn't
A reconstruction and a second check, not a filing record. IFTA expects actual miles by jurisdiction from records kept as you drive: odometer readings, trip sheets, or ELD/GPS. This report rebuilds an estimate after the fact from other records, so you can check your trip records against it and spot a state that looks low or missing. Every screen and every CSV row from it is marked ESTIMATE, NOT FILING-READY.
The IFTA tab's Jurisdiction Summary is still the figure of record in DispatchDeck. It adds up the miles typed on fuel purchases by the state of each purchase, so a state where nobody bought fuel shows 0 miles there. Miles by state exists to catch that.
The report shows its sources side by side and never blends them into one number. When two columns disagree, that is useful: it points at a trip to look up. Nothing in the report is written back to your data.
The report runs when you click Build for the quarter shown on the IFTA tab (calendar quarters, using your company's time zone for each day). It needs the Compliance module. The Claude connector's IFTA miles tool uses the same calculation.
Permit miles exact · on file
The route miles printed on an oversize/overweight permit. These are the state's authorized route for a loaded move, so they are exact for what the permit allows, but they are not proof the truck ran that day or that way.
Where permits come from
Permit records stored in DispatchDeck with a permit number, issuing state and route miles.
Permit PDFs attached to jobs that have a job day in the quarter. DispatchDeck opens each one (your company's permit folder only) and reads it:
A Montana eTRIPS single-trip permit gives its printed Total Distance under Route Information as the permit's miles. If the page shows no Total Distance, two different ones, or a figure outside 0–1,500 miles, no miles are taken from it (it still counts as a permit). A Montana term or annual permit has no single route, so it counts without miles.
North Dakota (NDHP) and LoadPass permits print no route miles. They are counted as permits, with no miles.
A scan, a photo, a receipt, a route sheet, or any other layout is listed as not read.
811 locate tickets are never counted. They are not road permits.
How a permit is counted
Date: the permit's effective date, else its issued date, else the earliest job day in the quarter on a job it's linked to, else the date it was added. A permit dated outside the quarter is left out.
State: the state that issued it. All of its miles go to that state. If a permit's record has no readable state but a permit PDF or another copy with the same number names exactly one state, it takes that state. A permit whose state still can't be read is counted under Unknown and never guessed onto a state.
Truck: the truck on the permit (by vehicle record or unit number). Permits for vehicles marked not IFTA-registered are left out.
Duplicates: the same permit number from the same state is counted once, and the copy that carries miles wins. A PDF of a permit already on file only fills in its missing miles; it never adds a second permit. The same number from two different states counts as two permits.
No miles on file: the permit is counted and the gap is shown (“permits without miles”). Its miles are never estimated.
Job-destination miles estimated
A stop-to-stop estimate built from the destinations on each job on the board.
Which days: every job day in the quarter, for every truck on that day. Several jobs on one truck on one day are joined into one chain, in the order the jobs were created and then the order of their destinations.
Home base (optional): if you pick a saved location as the home base, each day's chain starts and ends there, which adds the shop-to-first-stop and last-stop-to-shop legs. Without one, only destination-to-destination legs count.
Distance: each leg is the straight-line (great-circle) distance between two consecutive destinations, the same formula the per-mile price book uses. It is not a road route. No factor is added for road miles.
State split: each leg is sampled every 2 miles, and each sample is put in a state using a rectangle drawn around that state (its latitude and longitude limits). A destination's own state comes first from a state written in its name or map link (“Sidney, MT”, “North Dakota”) when the point sits inside that state's rectangle, then from the rectangles.
Overlaps: rectangles overlap near irregular borders. A sample that falls in two rectangles goes to the nearer destination's state when that is one of them, else the other destination's, else the rectangle whose centre is closest. Those miles are also shown on their own as ambiguous, so you can see how much of a state's figure is a close call.
No truck on the board: a job day with no truck listed is shown on its own row, “No truck on the job day”, not under any vehicle.
Every day counts. When the same truck has the same jobs on back-to-back days with a loop of 150 miles or more each day, the report notes it may have been one long trip with the truck parked on site, and says how many miles would come off. Nothing is removed for you.
Odometer total, all states
For each truck: the meter readings logged in the quarter, plus the odometer entered on fuel purchases in the quarter, sorted by date. A reading marked to be ignored is skipped.
Total = last reading minus first reading. It needs at least two readings. If the last is lower than the first, the row is flagged “reading went down” and left as is, not corrected.
It is not split by state. It is every mile the truck moved, including empty miles and shop runs, so it is expected to be higher than the other columns. The gap between them is shown, not hidden.
GPS not used
The report does not read GPS, ELD or phone location tracks today. If you have GPS or ELD records, they are the stronger record of miles by state, and the best thing to check this report against.
Rules that apply to every column
Vehicles marked not IFTA-registered (a pickup or pilot car, for example) are left out of the state totals.
If two vehicles share a unit number or nickname, a record that names only that unit can't be put on either truck. Its job-destination miles still count in the state totals, its permits still count in their state, and its odometer readings are not used. The report says how many.
The report reads a capped number of records at once (3,000 job days, 2,000 permits, 5,000 meter readings, 3,000 fuel purchases). Past a cap it stops and asks you to narrow the dates rather than total part of the data. It opens at most 300 permit PDFs (about a minute) per build and tells you if some were not read.
Every caveat that applies to your quarter is printed under the tables and in the CSV.
Known gaps
Straight lines run short. Road miles are usually 10–25% more than the straight-line distance, so job-destination miles likely understate.
Empty legs are missing. A deadhead leg that is on neither a permit nor the board is not counted. A home base adds shop legs only.
State lines are rectangles. A point near an irregular border (the Red River, the Montana–Idaho line) can land in the wrong state even when only one rectangle covers it.
A permit isn't split. All of its miles go to the issuing state. A Montana permit covers Montana roads only, but a route that crosses more than one state is not divided.
Permit miles are for loaded moves. They are the authorized route, not the route actually driven, and they don't include the empty trip back.
Only Montana eTRIPS PDFs give miles today. Other states' permit files are counted without miles, or not read.
Missing data stays missing. A destination with no map pin is skipped, a truck-day with fewer than two points adds 0 miles, and a job day with no truck on it isn't on any vehicle.
The odometer can't place miles in a state, and it depends on readings actually being entered.
Worked example
EXAMPLE · MADE-UP NUMBERS
Truck Unit 12 runs one loaded oversize move in Q1. The home base is a yard in North Dakota. The board has the job going to a pickup site in Montana, then a drop site further into Montana. The loaded move is pickup to drop. There is one Montana eTRIPS permit on the job for it, with a printed Total Distance of 60.1 miles. The trips out from the yard and back are empty.
Job-destination legs (straight line, split every 2 miles)
Leg
Straight line
ND
MT
Home base (ND) → pickup (MT)
48.0
20.0
28.0
Pickup (MT) → drop (MT)
52.0
—
52.0
Drop (MT) → home base (ND)
96.0
26.0
70.0
Job-destination miles
196.0
46.0
150.0
What the report shows for Unit 12
State
Permit miles
Job-destination miles (est.)
MT
60.1 1 permit
150.0
ND
0.0 0 permits
46.0
Odometer for the whole quarter: first reading 412,310 (Jan 3), last reading 431,005 (Mar 28), so 18,695.0 miles across all states. It covers every trip Unit 12 made in the quarter, not just this one, so it is not compared state by state.
How to read it
The permit covers only the loaded pickup-to-drop move. Its route (60.1) is about 16% longer than that leg's straight line (52.0), which fits a road route. A permit far off its loaded leg is a trip to look up.
The rest of Montana's 150.0 job-destination miles (28.0 out, 70.0 back) are empty legs that no permit covers. That is why the two Montana columns differ, and why neither one alone is the answer.
North Dakota has no permit, only the estimate for the empty legs (46.0). Check it against the trip sheet.
The figure you file comes from your trip records. This report is how you check them.
Questions about a number?
Email chris@dispatchdeck.app with the quarter and the truck, and we'll walk through where the figure came from.