Calculate Maximum Loan Amount Formula