Driver arrival and detention

Shipment tracking software: when should an overdue-delivery alert fire?