P/E Ratio Inputs

P/E Ratio Analysis Results

Calculated Metrics

P/E Ratio: 0.00
PEG Ratio: 0.00
Forward P/E Ratio (1-Year): 0.00
Implied Growth Rate (from P/E): 0.00%
Justified P/E (Dividend Discount Model): 0.00

This report provides calculated P/E ratios and related metrics based on the inputs provided.

Input Values

Current Share Price: ${formatCurrency(calculatedMetrics.currentSharePrice)}
Earnings Per Share (EPS): ${formatCurrency(calculatedMetrics.earningsPerShare)}
Expected Earnings Growth Rate: ${formatPercentage(calculatedMetrics.expectedGrowthRate)}
Required Rate of Return (Discount Rate): ${formatPercentage(calculatedMetrics.discountRate)}
Dividend Payout Ratio: ${formatPercentage(calculatedMetrics.dividendPayoutRatio)}

Calculated Metrics

P/E Ratio: ${formatNumber(calculatedMetrics.peRatio)}
PEG Ratio: ${typeof calculatedMetrics.pegRatio === 'number' ? formatNumber(calculatedMetrics.pegRatio) : calculatedMetrics.pegRatio}
Forward P/E Ratio (1-Year): ${typeof calculatedMetrics.forwardPeRatio === 'number' ? formatNumber(calculatedMetrics.forwardPeRatio) : calculatedMetrics.forwardPeRatio}
Implied Growth Rate (from P/E): ${typeof calculatedMetrics.impliedGrowthRate === 'number' ? formatPercentage(calculatedMetrics.impliedGrowthRate) : calculatedMetrics.impliedGrowthRate}
Justified P/E (Dividend Discount Model): ${typeof calculatedMetrics.justifiedPe === 'number' ? formatNumber(calculatedMetrics.justifiedPe) : calculatedMetrics.justifiedPe}
`; return content; } function downloadPdf() { // Need to ensure calculations have been run if (Object.keys(calculatedMetrics).length === 0 || !calculatedMetrics.peRatio) { errorMessageDiv.textContent = "Please calculate P/E ratios first before downloading the PDF."; errorMessageDiv.style.display = 'block'; return; } const printWindow = window.open('', '_blank'); if (!printWindow) { alert("Please allow pop-ups for PDF download."); return; } printWindow.document.write('P/E Ratio Report'); printWindow.document.write(''); printWindow.document.write(''); printWindow.document.write(generatePdfContent()); printWindow.document.write(''); printWindow.document.close(); printWindow.print(); printWindow.close(); } // --- Event Listeners --- tab1Button.addEventListener('click', () => activateTab('tab1Content')); tab2Button.addEventListener('click', () => activateTab('tab2Content')); calculateButton.addEventListener('click', calculatePERatio); resetButton.addEventListener('click', resetCalculator); pdfDownloadButton.addEventListener('click', downloadPdf); prevTabButton.addEventListener('click', function() { const currentTab = document.querySelector('.pe-tab-content.active'); const tabs = [tab1Content, tab2Content]; const currentIndex = tabs.indexOf(currentTab); if (currentIndex > 0) { activateTab(tabs[currentIndex - 1].id); } }); nextTabButton.addEventListener('click', function() { const currentTab = document.querySelector('.pe-tab-content.active'); const tabs = [tab1Content, tab2Content]; const currentIndex = tabs.indexOf(currentTab); if (currentIndex < tabs.length - 1) { // If on input tab and trying to go to results, calculate first if (currentTab.id === 'tab1Content') { calculatePERatio(); // Attempt calculation // If calculation fails, do not proceed to tab 2 if (errorMessageDiv.style.display === 'block') { return; } } activateTab(tabs[currentIndex + 1].id); } }); // Initial setup resetCalculator(); // Call reset to set up default inputs and initial state updateNavigationButtons(); });
Scroll to Top