Ocean container drayage operators face relentless pressure from steamship line per-diem escalation and detention charges, particularly when marine terminals close empty return gates due to yard congestion. A single delayed empty repositioning move can trigger cascading fees that quickly reach thousands of dollars per container. Strong Tower Consulting has spent more than 18 years designing and implementing enterprise transportation management systems that eliminate these avoidable costs through automated clock auditing, tariff intelligence, and dispute automation.
This technical guide details the architecture, data flows, and business logic required to build and maintain an automated per-diem countdown engine inside a modern TMS used by intermodal drayage fleets and 3PL brokerages.
The Per-Diem Penalty Cycle in Intermodal Drayage
When a loaded ocean container is delivered to a consignee, the steamship line (Maersk, CMA CGM, COSCO, etc.) begins a free-time clock for the empty container's return. Each carrier publishes unique tariff rules that define free days, daily per-diem rates, and escalation tiers. Marine terminals frequently restrict or close empty return gates when yard inventory reaches capacity. Drayage operators arriving with empties are turned away, yet the per-diem clock continues to run. The result is systematic, often illegitimate, detention and per-diem billing that is difficult to dispute without comprehensive timestamped evidence.
Enterprise TMS Per-Diem Countdown Engine Architecture
The core of an effective solution is a dedicated per-diem countdown service that operates continuously inside the TMS. This service is built around four primary data domains and a rules engine:
- Equipment Event Ingestion Layer - Real-time consumption of EDI 322 Equipment Interchange Reports from ocean carriers, terminal operators, and rail providers. Each 322 transaction provides critical timestamps for gate-in, gate-out, load, empty, and chassis events.
- Tariff Intelligence Database - A normalized, version-controlled repository of steamship line free-time rules, per-diem rate tables, holiday calendars, and exception clauses. Rules are stored in a JSON schema that supports carrier-specific logic (e.g., Maersk's "dual-turn" priority rules versus COSCO's port-specific free-day variations).
- Terminal & GPS Event Reconciliation - Integration with terminal appointment systems and ELD/GPS platforms to capture dual-turn rejection events, gate closure notices, and precise GPS arrival timestamps. These events are matched to the corresponding EDI 322 records using container number, chassis number, and timestamp proximity logic.
- Countdown & Alerting Engine - A scheduled process (typically every 15 minutes) that calculates remaining free time for every active empty container under the carrier's control. The engine applies business hours, terminal operating schedules, and documented exceptions to produce an accurate "hours until violation" value.
The database schema for the central container clock table typically includes columns such as:
container_id (PK)
steamship_line
equipment_number
current_status (Loaded | Empty | In-Transit | At-Terminal)
last_322_timestamp
free_time_start
free_days_allowed
per_diem_rate_schedule JSONB
hours_remaining
projected_violation_ts
dispute_eligible (boolean)
dispute_package_id
last_audited_ts
Automated Dispute Package Generation Workflow
When the countdown engine detects an impending or actual violation caused by terminal gate closure, the TMS automatically assembles a formal dispute package. The package contains:
- Container number and booking reference
- EDI 322 transaction history with parsed gate events
- GPS-verified arrival timestamps at the terminal
- Photographic evidence of closed gates or yard congestion signage (uploaded via mobile driver app)
- Terminal rejection log entries or appointment denial records
- Carrier tariff rule citations showing the exception clause that should trigger a waiver
- Calculated per-diem amount being contested
The generated package is transmitted via EDI 214, API, or carrier-specific web portal with a standardized dispute reason code. Strong Tower Consulting implementations have documented recovery rates exceeding 80 percent on contested per-diem charges when complete evidentiary packages are submitted within 48 hours of the billing event.
Critical System Integrations for Accurate Clock Management
Successful per-diem automation requires mature integration patterns across several domains. Strong Tower Consulting routinely implements the following during TMS engagements for intermodal drayage operators:
- ELD and EDI integration for real-time GPS and driver-captured imagery tied to container events.
- TMS implementation that normalizes EDI 322, 214, and 210 transactions into a unified equipment state model.
- Transportation accounting integration to automatically credit disputed per-diem charges against carrier invoices.
- Advanced reporting dashboards that surface per-diem exposure by steamship line, terminal, and customer lane.
These integrations are particularly valuable for organizations operating in the intermodal drayage and brokerage/3PL sectors, where container velocity directly impacts both revenue and cost.
Tariff Maintenance and Rules Engine Governance
Steamship line tariffs change frequently. The TMS must include a governed process for updating tariff logic without requiring code deployments. Strong Tower Consulting recommends a business-rules engine paired with a tariff administration UI that allows transportation analysts to upload revised PDF tariffs, map new exception clauses, and schedule effective dates. The rules engine then compiles these into executable decision tables that the countdown service consumes.
Versioning of tariff records is mandatory. Every per-diem calculation must store the exact tariff version used so that disputes can be defended with the precise rules in force on the date of the move.
Quantifiable Financial Impact for Drayage Operators
Organizations that deploy automated per-diem auditing and dispute generation consistently report elimination of five- and six-figure annual leakage. The system prevents reactive scrambling when invoices arrive and replaces it with proactive, evidence-based dispute management. When combined with business process optimization and carrier rate matrix optimization, the TMS becomes a strategic margin protection platform rather than a simple order entry tool.
Build a Defensible Intermodal Cost Control System
Intermodal drayage operators cannot control terminal congestion, but they can control their response to it. An enterprise-grade TMS with a real-time per-diem countdown engine, EDI 322 reconciliation, tariff intelligence, and automated dispute package generation transforms an area of chronic financial leakage into a managed, auditable process.
Strong Tower Consulting, LLC and Exspeedite LLC are separately organized sister companies under common ownership (separate EINs; liability firewall). Scott Elliott is founder and transportation systems architect of both. Since 2008 we have helped motor carriers, freight brokerages, and private fleets implement these exact capabilities.
Ready to eliminate avoidable per-diem and detention charges in your intermodal drayage operation?
Request a TMS Per-Diem Assessment Speak with Scott Elliott at 763-244-1373