top of page

Why do refunds take so long?

1 hour ago
3 min read

Spoiler warning: this post is a full answer to question 20 of the Isla Velaluz dataset. If you want to solve it yourself, do that first.


I recently published Isla Velaluz, a synthetic dataset of a fictional resort with 30 business questions attached. This is the first one I have worked through in public, and I did it using only SQL.


The question comes from the Director of Guest Services. Guests complain that refunds are slow. Staff say most are fast. He wants to know which refunds are slow, since when, and where in the process the time goes.


Both sides are right

The refunds table has 124,826 requests over eight years. Half of them close in minutes. So the staff are right.


But the slow end tells a different story. Through 2021 the slowest tenth of refunds took about four days. Since 2022 they take more than a week. Something changed, and it changed in one month.

Mean days to close a refund, by month. The level shifts in June 2022 and does not come back down.
Mean days to close a refund, by month. The level shifts in June 2022 and does not come back down.

The spike in fall 2022 is a separate event. The resort closed for a hurricane and refund requests surged. That passed in two months. The higher level after it did not.


Turning an event log into a process

The second table, refund_events, is an event log: one row for each step of each request, with a time and a team. To use it, I reshaped it twice.

  • One row per request. string_agg writes each request's steps out in order as one piece of text, which is its path through the process.

  • One row per hand-off. lead pairs each step with the next one, so the wait between them can be measured.

The two reshaping queries, shortened. The full versions are in the notebook.
The two reshaping queries, shortened. The full versions are in the notebook.

With one row per request, counting paths is a simple GROUP BY.

The five most common paths. The one that goes through manager approval has a median of 7.6 days.
The five most common paths. The one that goes through manager approval has a median of 7.6 days.

Where the time goes

Adding up the wait at every hand-off since June 2022 points at one place. Requests wait a median of 4.4 days between the documentation check and manager approval. No other hand-off comes close per request.

Total days waited at each hand-off since June 2022. Hand-offs into manager approval are highlighted.
Total days waited at each hand-off since June 2022. Hand-offs into manager approval are highlighted.

Before June 2022, no refund went to a manager at all. The step did not exist.


The rule nobody wrote down

Nothing in the data says who has to get manager approval. But grouping by the amount requested makes the rule visible. From 2023 on, every request of $200 or more goes to a manager, and no request under $200 does.

Median days to close by amount requested, 2023 to 2025. The jump is at $200.
Median days to close by amount requested, 2023 to 2025. The jump is at $200.

About half of the requests that go to a manager take more than a week. For everything else, it is 1.4%.


What the step is worth

It would be easy to stop here and say "remove the step". But the step does something. About one request in ten is rejected at manager approval, so taking it away has a cost. The useful question is what each part of the rule costs and saves.

Requests sent to a manager per year, and the dollars rejected at that step, by amount band.
Requests sent to a manager per year, and the dollars rejected at that step, by amount band.

The $200 to $499 band is about 2,560 requests a year. That is nearly three quarters of everything a manager reviews. The step rejects about $97,000 a year in that band.


What I would tell the director

  1. Keep the rule and set a target. Managers decide within one business day. This keeps the control, but it depends on managers having the time.

  2. Raise the threshold to $500. About 2,560 guests a year stop waiting four days. The most it could cost is the $97,000 a year now rejected in that band.

  3. Review by risk, not amount. Send only certain reasons or repeat requesters to a manager. This needs more analysis.

I would start with option 2 and add a one-day target for what is left. The $97,000 is an upper limit, since the documentation check already rejects about 7% of requests that never reach a manager, and some of these would still be caught there.


One limit: the data shows what was rejected, not whether each rejection was right. That is a question for the people who do the work, and it is the first thing I would ask them.


See the work

Comments


bottom of page