SIP Calculator

SIP Calculator

Result will appear here

function calculateSIP() { const investmentAmount = parseFloat(document.getElementById('investmentAmount').value); const monthlyInvestment = parseFloat(document.getElementById('monthlyInvestment').value); const investmentDuration = parseInt(document.getElementById('investmentDuration').value); if (isNaN(investmentAmount) || isNaN(monthlyInvestment) || isNaN(investmentDuration)) { document.getElementById('result').textContent = 'Please enter valid numbers'; return; } const totalAmountInvested = investmentAmount + (monthlyInvestment * 12 * investmentDuration); const estimatedReturns = totalAmountInvested * 0.12; // 12% estimated returns for example const maturityAmount = totalAmountInvested + estimatedReturns; document.getElementById('result').textContent = `Estimated Maturity Amount: ₹ ${maturityAmount.toFixed(2)}`; }

Post a Comment

Please do not enter any spam comments and links.

Previous Post Next Post