Calculate Maximum Loan