Detention and demurrage is an extra charge that arises when customers keep containers for longer than the time agreed. It's designed as liquidated damages for breach of freetime contract.