Automating Loan and Portfolio Analysis