Short‑Term Rental ROI Calculator

Return on Investment (ROI): ${roi.toFixed(2)}%

`; } async function downloadPDF() { const { jsPDF } = window.jspdf; if (!resDiv.innerHTML.trim()) { alert('Please calculate ROI first.'); return; } const doc = new jsPDF({ unit: 'pt', format: 'letter' }); let y = 40; doc.setFontSize(16); doc.text('Short‑Term Rental ROI Report', 40, y); y += 25; const lines = resDiv.innerText.split('\n'); doc.setFontSize(12); lines.forEach(line => { doc.text(line, 40, y); y += 18; }); doc.save('STR-ROI-Report.pdf'); } });
Scroll to Top