Skip to content

How to Automate Detention and Layover Pay With ELD Data in Your TMS

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.

Key takeaways

  • Detention pay depends on two timestamps per stop: when the truck arrived and when it was loaded or unloaded. Your ELD and driver app already record both.
  • Set detention once per customer (free time and rate), then assign it to drivers. In Truckpedia, detention is calculated from stop timestamps and shows up on the driver settlement.
  • Layover is a judgment call tied to HOS. Keep it as a defined pay item and add it on review, with the ELD log as backup.
  • Settlements in Truckpedia sync to QuickBooks Online as expenses or checks, so pay reaches your books without retyping.

Why detention and layover pay leak on small fleets

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:

  1. The times are not written down. The driver says "about four hours." The customer asks for proof, and nobody has a timestamp to send.
  2. The rules live in someone's head. One shipper gives two hours free, another gives one, a third pays by the minute.
  3. Pay and billing drift apart. You bill detention but forget to pay the driver, or pay a layover you never billed.

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.

What ELD and HOS data a TMS actually needs

For detention and layover, a TMS needs four things:

  • Arrival time at each stop. This starts the detention clock.
  • Loaded or unloaded time at each stop. This stops it.
  • Appointment type and time. A firm appointment and a first come, first serve window are measured differently.
  • Hours of service status. This tells you whether an overnight stop was a true layover or a planned reset.

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.

How detention automation works inside the TMS

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.

Step 1: Store the customer's detention terms

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.

Step 2: Set the driver's detention pay

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.

Step 3: Let the timestamps do the counting

The clock depends on the appointment type:

  • Firm appointment: if the appointment is 03:00, the driver arrives at 02:30 and is loaded at 07:00, detention runs from 03:01. Arriving early does not count.
  • First come, first serve: add the time window to the load. If the window is 14:00 to 18:00, the driver arrives at 14:20 and is loaded at 14:52, detention counts from 14:20 until the driver marks the load as loaded.

Step 4: Review it on the settlement

When the trip ends, the calculated shipper and receiver detention appears on the driver pay settlement for review.

How to handle layover pay

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:

  1. Create a Layover item in the chart of accounts so it gets its own line on invoices and settlements. If you sync to QuickBooks, match the item name to the one in QuickBooks.
  2. Write the policy down. Example: layover is paid when a receiver reschedules and the driver cannot reach the next load within HOS limits.
  3. Add it on review. Add the layover item during trip level pay review or in the settlement. Edits on a settlement apply to that settlement only.
  4. Keep the evidence on the load. The arrival time, the rescheduled appointment and the ELD duty status for the reset are what you send the customer.

Checklist: what to ask a TMS and ELD setup before you trust it with pay

Question to askWhy it mattersWhat good looks like
Do arrival and departure times land on the stop automatically?Detention claims fail without proofGeofence 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 shipperFree 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 matchOne 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 detentionFirm appointments count from appointment time, FCFS from arrival within the window
Can you see HOS before you approve layover?Layover is tied to required restHOS shows on the load board
Does pay export to accounting without retyping?Double entry creates errorsSettlements sync to QuickBooks Online as expenses or checks

Truckpedia offers 100+ integrations, including Samsara, Motive and Geotab for ELD and telematics.

Worked example: one week, one customer

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):

  • Driver taps Arrived at 08:10, matching the Samsara geofence event.
  • Driver taps Loaded at 12:40.
  • Time at the dock: 4 hours 30 minutes, or 270 minutes.
  • Billable after free time: 270 minus 120 = 150 minutes, which is 2.5 hours.
  • Customer detention: 2.5 × $60 = $150.
  • Driver detention: 2.5 × $20 = $50.

Load 2, layover at delivery:

  • The receiver reschedules a 15:00 appointment to 06:00 the next day.
  • The ELD log shows the driver took a 10 hour off-duty reset at the receiver.
  • Dispatch adds Layover to the invoice ($175) and to the driver's settlement ($100).

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.

From settlement to payroll

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.

Where Truckpedia fits

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.

FAQ

Which ELD vendors integrate HOS data with a TMS for detention and layover pay?

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.

Why keep detention rules in the TMS instead of the ELD?

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.

What happens if a driver forgets to mark arrival in the app?

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.

How is detention counted for first come, first serve appointments?

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.

Can detention and layover pay sync to QuickBooks?

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.

Do ELD integrations cost extra in Truckpedia?

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.

See detention and layover on your own loads

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.