Net Worth Tracker

Assets (What You Own)

Total Assets: $0.00

Liabilities (What You Owe)

Total Liabilities: $0.00

Net Worth Summary

Total Assets: $0.00

Total Liabilities: $0.00


Net Worth: $0.00

Net Worth Statement

Notes:

  • This calculator provides a snapshot of your net worth based on the values you have entered.
  • Values are self-reported and should be updated regularly for an accurate picture of your financial health.
  • This tool is for informational purposes only and does not constitute financial advice.
  • For comprehensive financial planning and advice, please consult with a qualified financial advisor.

Total Liabilities: $${totalLiabilities.toLocaleString(undefined, {minimumFractionDigits:2, maximumFractionDigits:2})}


Net Worth: $${netWorth.toLocaleString(undefined, {minimumFractionDigits:2, maximumFractionDigits:2})}

`; html2canvas(pdfOutputArea, { scale: 1.5, useCORS: true, backgroundColor: '#ffffff', windowWidth: pdfOutputArea.scrollWidth }) .then(canvas => { const imgData = canvas.toDataURL('image/jpeg', 0.9); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const margin = 40; let contentWidth = pdfWidth - 2 * margin; const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; let imgWidth = contentWidth; let imgHeight = imgWidth / ratio; if (imgHeight > pdfHeight - 2 * margin) { imgHeight = pdfHeight - 2 * margin; imgWidth = imgHeight * ratio; if (imgWidth > contentWidth) { imgWidth = contentWidth; imgHeight = imgWidth / ratio; } } const x = (pdfWidth - imgWidth) / 2; pdf.addImage(imgData, 'JPEG', x, margin, imgWidth, imgHeight, undefined, 'MEDIUM'); pdf.save('Net_Worth_Statement.pdf'); }) .catch(err => { console.error("Error generating PDF:", err); alert("Error generating PDF. See console for details."); }); }); // --- Utility --- function escapeHtml(unsafe) { if (typeof unsafe !== 'string') return unsafe === undefined || unsafe === null ? '' : String(unsafe); return unsafe.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); } // --- Initial Setup --- addItem('asset'); // Start with one empty asset row addItem('liability'); // Start with one empty liability row calculateAndDisplayTotals(); // Initial calculation });
Scroll to Top