To automate detention and layover pay, connect your ELD to a TMS that stores arrival and loaded times on each stop, then set detention rules per customer and pay rules per driver. The TMS calculates detention from those timestamps, adds it to the invoice and the driver settlement, and layover is added from the same trip record before payroll.
On a 10 to 50 truck fleet, the person who knows a driver sat at a dock for five hours is rarely the person who builds the invoice or the settlement. Three things break along the way:
The fix is to put the timestamps and the rules on the record that already produces the invoice and the settlement: the load in your TMS.
For detention and layover, a TMS needs four things:
In Truckpedia, the Samsara geofence integration timestamps arrivals and departures at every stop automatically. Drivers can also tap "Arrived" and "Loaded/Unloaded" in the driver app, and dispatchers can correct a time on the load. Samsara hours of service show on the load board. Motive and Geotab also connect, and our Motive TMS integration guide covers what data flows from Motive into dispatch.
There are two sides to detention: what you charge the customer and what you pay the driver. Set both up once, and the load does the math.
In Truckpedia, you can add detention to a customer rate sheet. You pick your detention account item, set the mode to Variable with shipper detention as the variable, enter the free time in minutes (for example, 120 for two free hours) and enter the rate charged after free time runs out. When you build a load for that customer and pick the rate sheet, the charges fill in from your rules.
Driver detention pay is also set per customer. Under the customer's profile you choose rate per hour or rate per minute and when detention starts, for example one minute after the appointment time. Then on each driver's accounting tab you add "Customer Specific Shipper Detention" and "Customer Specific Receiver Detention." From then on, any load that driver moves for that customer applies the agreed detention rate.
The clock depends on the appointment type:
When the trip ends, the calculated shipper and receiver detention appears on the driver pay settlement for review.
Layover has no clean start and stop event. It usually happens when a receiver pushes an appointment to the next day and the driver has to wait, often while taking a required break.
Federal hours of service rules shape most layover decisions. Under the FMCSA hours of service summary, a property-carrying driver may drive a maximum of 11 hours after 10 consecutive hours off duty and may not drive beyond the 14th consecutive hour after coming on duty. When a delay forces that 10 hour reset at or near the customer, layover disputes start.
The practical setup in Truckpedia:
| Question to ask | Why it matters | What good looks like |
|---|---|---|
| Do arrival and departure times land on the stop automatically? | Detention claims fail without proof | Geofence events or driver app taps write timestamps to each stop, editable by dispatch |
| Are detention rules stored per customer? | Free time and rates differ by shipper | Free time and hourly or per minute rate saved on the customer or rate sheet |
| Does detention reach both the invoice and the driver settlement? | Billing and pay should match | One set of timestamps feeds the customer charge and the driver pay line |
| Does the TMS handle firm appointments and FCFS windows differently? | Early arrivals should not inflate detention | Firm appointments count from appointment time, FCFS from arrival within the window |
| Can you see HOS before you approve layover? | Layover is tied to required rest | HOS shows on the load board |
| Does pay export to accounting without retyping? | Double entry creates errors | Settlements sync to QuickBooks Online as expenses or checks |
Truckpedia offers 100+ integrations, including Samsara, Motive and Geotab for ELD and telematics.
The numbers below are an example. Use your own terms.
A 20 truck dry van carrier hauls for a distribution center that offers two hours of free time and pays $60 per hour of detention after that. The carrier pays drivers $20 per hour of detention after the same two free hours, and $100 for an approved layover. The carrier bills the customer $175 per layover.
Load 1, detention at pickup (FCFS window 08:00 to 12:00):
Load 2, layover at delivery:
The week's extra revenue on two loads: $150 + $175 = $325 billed. Driver extra pay: $50 + $100 = $150.
If 8 loads a week look like Load 1, that is 8 × $150 = $1,200 a week in customer charges that only get paid with timestamps behind them. With times and rules on the load, the charge is calculated before you build the invoice, and the driver sees the matching line on the settlement.
Once detention and layover are on the settlement, the last step is getting them into your books. In Truckpedia you review the settlement, click Calculate Payments, approve it and generate a PDF statement you can email to the driver. Approved settlements sync to QuickBooks Online as expenses or checks under the category you choose, such as Salaries and Wages or Contract labor. Truckpedia also lists QuickBooks Payroll among its integrations for fleets that pay drivers as W-2 employees.
For how settlements, deductions and pay types fit together, read our driver settlements guide.
Truckpedia is an AI-powered TMS for carriers, #1 rated with 4.8 stars, built to automate 80% of manual back-office work. Founder Justin Lu built and ran a fleet from 3 to 100 trucks, which is why driver pay and billing sit on the same load record as dispatch. Brown Dog Carriers is saving 20 hours on average each week after switching from McLeod TMS to Truckpedia. Plans start from $299/month for up to 10 trucks, plus $30 per additional truck.
Truckpedia connects to Samsara, Motive and Geotab. With Samsara, live location, hours of service and geofenced arrival and departure times show on the load. Detention is calculated from each stop's arrival and loaded or unloaded timestamps, using the customer's free time and rate. Layover is added as a pay item on review, backed by the HOS log.
Your ELD records where the truck is, when it arrived and the driver's duty status. The invoice and the driver settlement are built in the TMS, so customer free time, detention rates and driver pay policy belong there. The TMS combines stop timestamps with those rules to produce both the invoice charge and the settlement line.
A dispatcher can open the load and update the arrival or loaded and unloaded timestamps on the shipper and receiver steps. If the truck runs Samsara, geofenced arrivals and departures are also timestamped automatically. Either way, check the time against the ELD record before you bill the customer.
Add the appointment window to the load. Detention then counts from the time the driver arrives within the window until the driver marks the load as loaded or unloaded. For firm appointments, detention starts after the appointment time, so a driver who arrives early does not add detention for the time before the appointment.
Yes. Driver settlements in Truckpedia, including detention and layover lines, sync to QuickBooks Online as expenses or checks. You set the payment account and expense category once, then sync each approved settlement from the settlements list. Each charge can map to its own account, so your books show line items instead of one lump sum.
No. Integrations are included in every Truckpedia plan at $0 extra, with no per connection fees. Plans start from $299/month for up to 10 trucks, plus $30 per additional truck. ELD setup for Samsara, Motive or Geotab is configured with you during onboarding.
Bring one customer's detention terms and one week of loads. We will show you how stop timestamps, customer rules and driver pay come together on a single settlement. Get a demo of Truckpedia.