Home Amazing facts July 25, 2023 0 Comments Facebook Twitter SIP Calculator SIP Calculator Investment Amount (₹) Monthly Investment (₹) Investment Duration (in years) Calculate 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)}`; } Facebook Twitter
Post a Comment
Please do not enter any spam comments and links.