Teb Loan Calculation