Demurrage is charged when a container overstays its free days inside the port; detention when the emptied box returns late to the shipping line. Both bill daily and can run simultaneously. Saudi ports allow limited free time, so slow clearance converts directly into charges.
The cure is preparation: certificates issued before arrival, declarations pre-filed, trucking booked against expected release. A prevented week of charges often exceeds any freight discount.