Proportionate to what you lose.
The Competition and Markets Authority’s guidance says a deposit you keep must take into account what your business will actually lose. It says charges are more likely to be fair when they reflect a genuine estimate of what you will lose directly, and that a cancellation fee must not be excessive (CMA, Writing a fair contract for customers).