Skip to content
English
  • There are no suggestions because the search field is empty.

Custom Detention Timing Rule in Rate Sheets

Detention in a customer rate sheet now has a new Custom timing rule. Instead of simply billing from when the driver arrived to when they left, the Custom rule walks through four clear steps: it rounds the driver's times, decides when the detention clock starts, takes off the free time, and then counts the billable time.

This guide shows you how to set it up and explains how each step works.

Good to know: Right now each step of the Custom rule has one option. We'll keep adding options so every customer's detention rule can be set up here. If your customers use a different detention rule, send it to help@truckpedia.io and we'll add it.

Step 1: Open the customer's rate sheet

  1. Open the customer and click the Rate Sheets tab.
  2. Click the pencil icon next to the rate sheet you want to use. To start a new one, click New Rate Sheet.

Customer Rate Sheets tab with the edit pencil next to a rate sheet

Step 2: Add or edit the Detention item

Click Add Item to add detention, or click the pencil icon next to an existing Detention item.

Rate sheet items with the Add Item button and the edit pencil on a Detention item

For a new item:

  1. Choose your detention charge in Account Item.
  2. Set Mode to By Variable.
  3. In Variable, choose Shipper Detention or Receiver Detention.

Add New Item window with Mode set to By Variable and the Shipper Detention and Receiver Detention options

Step 3: Choose the Custom timing rule

Open Timing rule and choose Custom.

  • From Driver Arrived To Departure is the original rule. It counts all the time from arrival to departure.
  • Custom is the new rule. It opens four steps you can set up.

Timing rule dropdown showing From Driver Arrived To Departure and Custom

Step 4: Set up the four steps

Custom timing rule with its four steps: normalize timestamps, clock start, free time and billable increment

1. Normalize Driver Timestamps

This rounds the driver's arrival and departure times before anything else is calculated.

  • Arrival: Round Up moves the arrival time up to the next interval. For example, 08:05 becomes 08:15.
  • Departure: Round Down moves the departure time down. For example, 10:21 becomes 10:15.
  • Rounding Interval sets the size of the rounding, such as 15 mins.

2. Determine Clock Start & On-Time Eligibility

This decides when the detention clock starts and whether the stop qualifies for detention at all.

  • If stop has scheduled time: Later of arrival or scheduled time. If the driver gets there early, the clock waits until the appointment time. If the driver arrives after the appointment time, the clock starts when they arrive.
  • If driver arrives after window: No detention ($0). A driver who misses the appointment window gets no detention for that stop.
  • If stop has date only (no time): Arrival to departure. When there's no appointment time, the clock runs from arrival to departure.

3. Subtract Free Time

Enter the free time in Start After (mins). For example, 120 means the first 2 hours are free, and only time after that counts toward detention.

4. Billable Increment & Multi-Stop Totaling

  • Interval (mins) is the billing increment, such as 15 minutes.
  • Interval Rounding: Round down (floor) only counts full increments. With a 15-minute interval, 40 minutes counts as 30.
  • Multiple Stops: Count each stop independently. Each stop gets its own detention calculation with its own free time.

Finally, set Rates application and the Rate as usual, then click Save (or Update if you're editing an existing item).

Example

Here's how the Custom rule works on a shipper stop with these settings: 15-minute rounding, 120 minutes free time and a 15-minute billing interval.

  • Appointment time is 08:00. The driver checks in at 07:52 and leaves at 11:23.
  • Step 1: Arrival 07:52 rounds up to 08:00. Departure 11:23 rounds down to 11:15.
  • Step 2: The driver was on time, so the clock starts at the later of 08:00 (arrival) and 08:00 (appointment), which is 08:00.
  • Step 3: 08:00 to 11:15 is 195 minutes. Minus 120 free minutes leaves 75 minutes.
  • Step 4: 75 minutes is five full 15-minute intervals, so 75 billable minutes of detention.

If the same driver had arrived after the appointment window, the stop would get no detention.

Tip: Before switching a customer over, check a few recent loads to confirm the detention amounts match what the customer expects. The original From Driver Arrived To Departure rule will be retired once the Custom rule covers everyone's detention rules.

💬 Need help? Contact us anytime at help@truckpedia.io.