Options Greeks Calculator

Theta (Call/day): ${theta.toFixed(4)}

Vega: ${vega.toFixed(4)}

Rho (Call): ${rho.toFixed(4)}

`; } function downloadPDF() { const { jsPDF } = window.jspdf; const doc = new jsPDF(); const content = document.getElementById('ogc-result').innerText; if (!content.trim()) { alert('Please calculate Greeks first.'); return; } doc.text("Options Greeks Calculation Result:", 10, 10); const lines = doc.splitTextToSize(content, 180); doc.text(lines, 10, 30); doc.save("Options-Greeks-Report.pdf"); }
Scroll to Top