A deposit refund is determined by the condition of the property, unpaid debts and the terms of the lease.