Impact Investing Performance Tracker

Impact Investing Performance Tracker

Sector: ${type}

Investment Amount: $${amount.toFixed(2)}

Annual Return: ${rate}%

Duration: ${years} years

Estimated Value: $${futureValue.toFixed(2)}

`; document.getElementById('result').innerHTML = resultHTML; } async function downloadPDF() { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const resultEl = document.getElementById('result'); if (!resultEl || resultEl.innerHTML.trim() === '') { alert('Please calculate results first.'); return; } const text = resultEl.innerText.split('\n'); let y = 10; doc.setFontSize(12); doc.text('Impact Investing Performance Report', 10, y); y += 10; text.forEach(line => { doc.text(line, 10, y); y += 8; }); doc.save('Impact-Investment-Performance.pdf'); }
Scroll to Top