Method of Quantifying Risk for Loan Portfolios