Inflation-Adjusted Rent Growth Calculator
Input Data
Growth Analysis
Nominal Rent Growth
Total Nominal Rent Growth:
Annualized Nominal Rent Growth Rate:
Inflation Adjustment
Real Value of Final Rent (in initial period's $):
Real Rent Growth
Total Real Rent Growth:
Annualized Real Rent Growth Rate:
Interpretation
${key}: ${inputsForPdf[key]}
`; } const resultsForPdf = { "Total Nominal Rent Growth": resultTotalNominalGrowth.textContent, "Annualized Nominal Rent Growth Rate": resultAnnualNominalGrowth.textContent, "Real Value of Final Rent (in initial period's $)": resultRealFinalRent.textContent, "Total Real Rent Growth": resultTotalRealGrowth.textContent, "Annualized Real Rent Growth Rate": resultAnnualRealGrowth.textContent }; let resultsHtml = ""; for (const key in resultsForPdf) { resultsHtml += `${key}: ${resultsForPdf[key]}
`; } const interpretationText = resultOverallInterpretation.textContent; const interpretationCls = resultOverallInterpretation.className; let interpretationStyle = "background-color: #fef5e7; color: #f39c12; border: 1px solid #f39c12;"; // Default neutral if (interpretationCls.includes('positive')) interpretationStyle = "background-color: #eafaf1; color: #2ecc71; border: 1px solid #2ecc71;"; else if (interpretationCls.includes('negative')) interpretationStyle = "background-color: #fbeeed; color: #e74c3c; border: 1px solid #e74c3c;"; const pdfContent = `Inflation-Adjusted Rent Growth Report
Inputs
${inputsHtml}
Growth Analysis
${resultsHtml}
Interpretation
${interpretationText}
Generated on: ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}
`; const printWindow = window.open('', '_blank'); if (printWindow) { printWindow.document.write('