Container detention, which is also called per diem, is a fee charged for each extra day the container is away from the port.