When the window closes, to the minute
The deadline for a lesson is that lesson's own start time, less twenty-four hours. There is no rounding up to the end of a day, no working-days arithmetic and no cut-off at the desk's closing time: whatever minute the lesson starts on, the window shuts on that minute.
That exact time is printed beside the lesson from the moment it is booked, and it is quoted in the e-mail that confirms it. You should never have to work it out, and you should never have to ask us what it was.
Cancel before it and the credit returns immediately. Cancel after it, or simply not turn up, and the credit is spent. We would rather write that sentence on its own page than leave it for somebody to discover on a Tuesday morning.
The reason is the shape of an instructor's day rather than a penalty. The hour was held for you, the twenty minutes after it were held so they could reach the next pickup, and inside a day nobody else can take that hour. A lesson also cannot be booked less than twenty-four hours ahead, for the same reason running in the other direction.
If we are the ones who cancel, the credit comes back whatever the clock says — a car off the road, an instructor unwell, a street closed — and somebody telephones you rather than waiting for you to notice.