Bank of America Interview Question

How would you create a formula for loan approvals?