Mortgage Default Risk Estimator

Mortgage Default Risk Estimator

Assess your financial stability and identify potential mortgage risks.

Your risk analysis will appear here. Please fill out the 'Data Configuration' tab first.

Financial Details

Stability Factors

${riskLevel}

Key Financial Ratios

Front-End DTI (Housing) ${results.frontEndDTI.toFixed(1)}%
Back-End DTI (Total Debt) ${results.backEndDTI.toFixed(1)}%

Debt-to-Income (DTI) ratios measure how much of your income goes to debt. Lenders generally prefer a Back-End DTI below 43%.

`; downloadBtn.classList.remove('hidden'); const riskGaugeFill = document.getElementById('riskGaugeFill'); if (riskGaugeFill) { const rotation = (results.finalScore / 100) * 180; riskGaugeFill.style.transform = `rotate(${rotation}deg)`; riskGaugeFill.style.borderColor = riskColor; riskGaugeFill.style.borderRightColor = 'transparent'; riskGaugeFill.style.borderBottomColor = 'transparent'; } } function downloadPDF() { const { jsPDF } = window.jspdf; const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const contentToPrint = document.getElementById('dashboard-content'); if (!contentToPrint) return; html2canvas(contentToPrint, { scale: 2, useCORS: true }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, pdfHeight > 277 ? 277 : pdfHeight - 20); pdf.save('Mortgage-Default-Risk-Analysis.pdf'); }); }
Scroll to Top