Demurrage is a daily charge for a full container that stays inside the terminal, rail ramp or container yard after free time. Detention, or per diem in U.S. usage, is a daily charge for the carrier's container kept outside the terminal after free time, until the empty is gated back in. Same container, two clocks: one runs at the port, the other at your warehouse. The FMC's rules cover both, plus any 'per diem' charge that is not freight.
The clocks do not start at the same moment. In Maersk's U.S. import terms, demurrage free time starts at the first 8:00 a.m. on the first business day after the container is discharged at an ocean terminal, with port exceptions (first 3:00 a.m. after discharge in Los Angeles and Long Beach, first 6:00 a.m. in Newark, first 12:00 a.m. in Norfolk). It ends the day the full container is gated out. Detention free time starts the day the equipment leaves the carrier's yard and ends the day the empty is gated in at the agreed terminal.
That is why the same import can show both lines on the freight forwarder invoice: a demurrage line passed through from the terminal, then a detention line from the carrier a few weeks later. Add a third clock when the box moves by rail: the railroad bills storage at the ramp under its own tariff, and the ocean carrier may still bill demurrage for the equipment. Trucker waiting time at your dock is a different charge altogether, billed by the motor carrier as one of its accessorials. We cover that in truckload detention charges, not here.
