The final inspection at handover, along with any unpaid debts and the property's condition, determines how much of the deposit is refunded.