Residential Lease Term Calculator
Calculate the exact duration of a lease by entering the start and end dates.
Total Lease Duration
0
Years
0
Months
0
Days
Lease Term Summary
Lease Dates
Total Duration
Days: ${calculationCache.days}
`; pdfContentEl.style.display = 'block'; const { jsPDF } = window.jspdf; html2canvas(pdfContentEl, { scale: 2 }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const imgProps = pdf.getImageProperties(imgData); const imgHeight = (imgProps.height * (pdfWidth - 20)) / imgProps.width; pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, imgHeight); pdf.save('Lease-Term-Summary.pdf'); pdfContentEl.style.display = 'none'; }); }); });