Step 1: Define Your Sustainability Investment

Enter the details of your planned investment to analyze its potential returns and sustainability improvements.

$
$
$

Step 2: Assess Impact on Key Risks

Estimate how this investment will improve your company's resilience against common supply chain risks.

Risk Category Projected Improvement Level
Operational Risk
Disruptions, delays, supplier failures
Reputational Risk
Negative brand perception, consumer backlash
Regulatory & Compliance Risk
Fines, penalties, new legislation

Step 3: Projected Returns & Impact

Here are the calculated financial returns and estimated sustainability KPI improvements based on your inputs.

Financial Projections

Sustainability KPI Improvement

Step 4: Investment Analysis Report

Review the consolidated summary of your analysis. You can download this report as a PDF for stakeholders.

Cost: ${formatter.format(parseFloat(investmentAmount.value))}

Annual Savings: ${formatter.format(parseFloat(annualCostSaving.value))}

Annual Revenue Gain: ${formatter.format(parseFloat(annualRevenueIncrease.value))}

Projected Financial Returns

${financialHTML}

Projected Risk Reduction

Operational Risk: ${riskLabels[riskOperational.value] || 'N/A'}

Reputational Risk: ${riskLabels[riskReputational.value] || 'N/A'}

Regulatory Risk: ${riskLabels[riskRegulatory.value] || 'N/A'}

Projected Sustainability Impact

${impactHTML}
`; } // --- PDF DOWNLOAD --- downloadPdfBtn.addEventListener('click', function() { const { jsPDF } = window.jspdf; const reportElement = document.getElementById('summaryReport'); if (!reportElement) { return; } this.textContent = "Generating..."; this.disabled = true; html2canvas(reportElement, { scale: 2, useCORS: true, logging: false, backgroundColor: '#ffffff' }) .then(canvas => { try { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'p', unit: 'mm', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; let imgWidth = pdfWidth - 20; let imgHeight = imgWidth / ratio; let heightLeft = imgHeight; let position = 10; pdf.addImage(imgData, 'PNG', 10, position, imgWidth, imgHeight); heightLeft -= (pdfHeight - 20); while (heightLeft > 0) { position = -heightLeft - 10; pdf.addPage(); pdf.addImage(imgData, 'PNG', 10, position, imgWidth, imgHeight); heightLeft -= pdfHeight; } pdf.save('Sustainable-Supply-Chain-Analysis.pdf'); } catch (error) { console.error("Failed to generate PDF:", error); alert("An error occurred while generating the PDF."); } finally { this.textContent = "Download PDF Report"; this.disabled = false; } }).catch(err => { console.error("html2canvas failed:", err); alert("Could not render the report for PDF generation."); this.textContent = "Download PDF Report"; this.disabled = false; }); }); showTab(currentTab); });
Scroll to Top