Mutual Fund Calculator

Posted by

·

Mutual Fund Calculator (India)

About This Calculator:

Use this calculator to estimate your mutual fund returns. Choose between a Lumpsum (one-time investment) or SIP (Systematic Investment Plan).

It also accounts for inflation to show the real value of investments.

Select Investment Type: Lumpsum SIP
Investment Amount (₹):
Expected Annual Return (%): Investment Duration (Years): Average Inflation Rate (%): Calculate

Total Invested Amount: ₹0

Final Value Without Inflation: ₹0

Final Value With Inflation: ₹0

body { font-family: Arial, sans-serif; background-color: #f4f4f4; text-align: center; padding: 20px; } .container { background: #fff; padding: 20px; width: 400px; margin: auto; border-radius: 8px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); } select, input { width: 100%; padding: 8px; margin: 8px 0; border: 1px solid #ccc; border-radius: 4px; } button { background: #28a745; color: white; border: none; padding: 10px; width: 100%; margin-top: 10px; cursor: pointer; font-size: 16px; } button:hover { background: #218838; } .result { margin-top: 15px; font-size: 18px; font-weight: bold; text-align: left; } .summary { background: #dff9fb; padding: 15px; border-radius: 8px; margin-bottom: 15px; text-align: left; } function toggleInvestmentType() { let investmentType = document.getElementById(“investmentType”).value; if (investmentType === “sip”) { document.getElementById(“sipSection”).style.display = “block”; document.getElementById(“lumpsumSection”).style.display = “none”; } else { document.getElementById(“sipSection”).style.display = “none”; document.getElementById(“lumpsumSection”).style.display = “block”; } } function formatCurrency(value) { return “₹” + value.toLocaleString(“en-IN”, { maximumFractionDigits: 2 }); } function calculate() { let investmentType = document.getElementById(“investmentType”).value; let returnRate = parseFloat(document.getElementById(“returnRate”).value) / 100; let years = parseInt(document.getElementById(“years”).value); let inflationRate = parseFloat(document.getElementById(“inflationRate”).value) / 100; if (isNaN(returnRate) || isNaN(years)) { alert(“Please enter valid numbers.”); return; } let finalValue, finalValueInflation, totalInvested; if (investmentType === “lumpsum”) { let amount = parseFloat(document.getElementById(“amount”).value); if (isNaN(amount) || amount <= 0) { alert("Please enter a valid lumpsum amount."); return; } totalInvested = amount; finalValue = amount * Math.pow(1 + returnRate, years); finalValueInflation = finalValue / Math.pow(1 + inflationRate, years); } else { let sipAmount = parseFloat(document.getElementById("sipAmount").value); let sipFrequency = parseInt(document.getElementById("sipFrequency").value); if (isNaN(sipAmount) || sipAmount <= 0) { alert("Please enter a valid SIP amount."); return; } let n = sipFrequency; let r = returnRate / n; let t = years; finalValue = sipAmount * ((Math.pow(1 + r, n * t) – 1) / r) * (1 + r); finalValueInflation = finalValue / Math.pow(1 + inflationRate, years); totalInvested = sipAmount * n * years; } document.getElementById("totalInvested").innerText = formatCurrency(totalInvested); document.getElementById("finalAmount").innerText = formatCurrency(finalValue); document.getElementById("finalAmountInflation").innerText = formatCurrency(finalValueInflation); }

PANKAJ KUMAR Avatar

About the author