sip calculator

SIP & Lumpsum Calculator

SIP Calculator

Investment Amount: ₹0

Estimated Returns: ₹0

Total Amount: ₹0

sip calculator stylish heavy style coding

best sip calculator Link

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>SIP & Lumpsum Calculator</title>

    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <style>

        body {

            font-family: 'Arial', sans-serif;

            background: linear-gradient(135deg, #1e90ff, #ff7f50);

            margin: 0;

            padding: 0;

            color: #fff;

        }


        .container {

            max-width: 800px;

            margin: 40px auto;

            padding: 30px;

            background: #fff;

            border-radius: 15px;

            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

            color: #333;

        }


        .tabs {

            display: flex;

            border-radius: 10px;

            overflow: hidden;

            margin-bottom: 20px;

        }


        .tab {

            flex: 1;

            padding: 15px;

            text-align: center;

            cursor: pointer;

            background: #e0e5ec;

            font-weight: bold;

            transition: all 0.3s ease;

        }


        .tab.active {

            background: #1e90ff;

            color: #fff;

        }


        .section {

            display: none;

        }


        .section.active {

            display: block;

        }


        .input-group {

            margin-bottom: 20px;

        }


        .input-group label {

            display: block;

            margin-bottom: 8px;

            font-weight: bold;

            color: #555;

        }


        .input-group input {

            width: 100%;

            padding: 10px;

            border: 1px solid #ddd;

            border-radius: 8px;

            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

        }


        .results {

            margin-top: 20px;

            background: #f8f9fa;

            padding: 20px;

            border-radius: 10px;

        }


        .results p {

            margin: 10px 0;

            font-size: 18px;

            color: #333;

        }


        .results p span {

            font-weight: bold;

            color: #1e90ff;

        }


        #sip-chart, #lumpsum-chart {

            width: 100%;

            height: 400px;

            margin-top: 20px;

        }

    </style>

</head>

<body>

    <div class="container">

        <!-- Tabs -->

        <div class="tabs">

            <button class="tab active" onclick="showTab('sip')">SIP Calculator</button>

            <button class="tab" onclick="showTab('lumpsum')">Lumpsum Calculator</button>

        </div>


        <!-- SIP Section -->

        <div id="sip" class="section active">

            <h2>SIP Calculator</h2>

            <div class="input-group">

                <label for="sip-investment">Monthly Investment (₹)</label>

                <input type="number" id="sip-investment" value="5000" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-return">Expected Return per Annum (%)</label>

                <input type="number" id="sip-return" value="12" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-period">Time Period (Years)</label>

                <input type="number" id="sip-period" value="5" onkeyup="calculateSIP()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="sip-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="sip-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="sip-total-amount">0</span></p>

            </div>

            <div id="sip-chart"></div>

        </div>


        <!-- Lumpsum Section -->

        <div id="lumpsum" class="section">

            <h2>Lumpsum Calculator</h2>

            <div class="input-group">

                <label for="lumpsum-investment">Total Investment (₹)</label>

                <input type="number" id="lumpsum-investment" value="5000" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-return">Expected Return per Annum (%)</label>

                <input type="number" id="lumpsum-return" value="12" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-period">Time Period (Years)</label>

                <input type="number" id="lumpsum-period" value="5" onkeyup="calculateLumpsum()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="lumpsum-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="lumpsum-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="lumpsum-total-amount">0</span></p>

            </div>

            <div id="lumpsum-chart"></div>

        </div>

    </div>


    <script>

        google.charts.load('current', { packages: ['corechart'] });


        function showTab(tab) {

            document.querySelectorAll('.tab').forEach(el => el.classList.remove('active'));

            document.querySelectorAll('.section').forEach(el => el.classList.remove('active'));


            document.querySelector(`.tab:nth-child(${tab === 'sip' ? 1 : 2})`).classList.add('active');

            document.getElementById(tab).classList.add('active');

        }


        function calculateSIP() {

            const monthlyInvestment = parseFloat(document.getElementById('sip-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('sip-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('sip-period').value) || 0;


            const months = periodYears * 12;

            const monthlyRate = annualRate / 12 / 100;


            const futureValue = monthlyInvestment * ((Math.pow(1 + monthlyRate, months) - 1) / monthlyRate) * (1 + monthlyRate);


            const investmentAmount = monthlyInvestment * months;

            const estimatedReturns = futureValue - investmentAmount;


            document.getElementById('sip-investment-amount').innerText = investmentAmount.toFixed(2);

            document.getElementById('sip-estimated-returns').innerText = estimatedReturns.toFixed(2);

            document.getElementById('sip-total-amount').innerText = futureValue.toFixed(2);


            drawChart(investmentAmount, estimatedReturns, 'sip-chart');

        }


        function calculateLumpsum() {

            const lumpsumInvestment = parseFloat(document.getElementById('lumpsum-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('lumpsum-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('lumpsum-period').value) || 0;


            const futureValue = lumpsumInvestment * Math.pow(1 + (annualRate / 100), periodYears);

            const estimatedReturns = futureValue - lumpsumInvestment;


            document.getElementById('lumpsum-investment-amount').innerText = lumpsumInvestment.toFixed(2);

            document.getElementById('lumpsum-estimated-returns').innerText = estimatedReturns.toFixed(2);

            document.getElementById('lumpsum-total-amount').innerText = futureValue.toFixed(2);


            drawChart(lumpsumInvestment, estimatedReturns, 'lumpsum-chart');

        }


        function drawChart(investmentAmount, estimatedReturns, chartId) {

            const data = google.visualization.arrayToDataTable([

                ['Type', 'Amount'],

                ['Investment Amount', investmentAmount],

                ['Estimated Returns', estimatedReturns],

            ]);


            const options = {

                title: 'Investment vs Returns',

                pieHole: 0.4,

                colors: ['#1e90ff', '#ff7f50']

            };


            const chart = new google.visualization.PieChart(document.getElementById(chartId));

            chart.draw(data, options);

        }


        window.onload = function () {

            calculateSIP();

            calculateLumpsum();

        };

    </script>

</body>

</html>

Sip calculator k.L.CR

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>SIP & Lumpsum Calculator</title>

    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <style>

        /* Stylish styles */

        body {

            font-family: 'Arial', sans-serif;

            background: linear-gradient(135deg, #1e90ff, #ff7f50);

            margin: 0;

            padding: 0;

            color: #fff;

        }


        .container {

            max-width: 800px;

            margin: 40px auto;

            padding: 30px;

            background: #fff;

            border-radius: 15px;

            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

            color: #333;

        }


        .tabs {

            display: flex;

            border-radius: 10px;

            overflow: hidden;

            margin-bottom: 20px;

        }


        .tab {

            flex: 1;

            padding: 15px;

            text-align: center;

            cursor: pointer;

            background: #e0e5ec;

            font-weight: bold;

            transition: all 0.3s ease;

        }


        .tab.active {

            background: #1e90ff;

            color: #fff;

        }


        .section {

            display: none;

        }


        .section.active {

            display: block;

        }


        .input-group {

            margin-bottom: 20px;

        }


        .input-group label {

            display: block;

            margin-bottom: 8px;

            font-weight: bold;

            color: #555;

        }


        .input-group input {

            width: 100%;

            padding: 10px;

            border: 1px solid #ddd;

            border-radius: 8px;

            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

        }


        .results {

            margin-top: 20px;

            background: #f8f9fa;

            padding: 20px;

            border-radius: 10px;

        }


        .results p {

            margin: 10px 0;

            font-size: 18px;

            color: #333;

        }


        .results p span {

            font-weight: bold;

            color: #1e90ff;

        }

    </style>

</head>

<body>

    <div class="container">

        <div class="tabs">

            <button class="tab active" onclick="showTab('sip')">SIP Calculator</button>

            <button class="tab" onclick="showTab('lumpsum')">Lumpsum Calculator</button>

        </div>


        <!-- SIP Section -->

        <div id="sip" class="section active">

            <h2>SIP Calculator</h2>

            <div class="input-group">

                <label for="sip-investment">Monthly Investment (₹)</label>

                <input type="number" id="sip-investment" value="5000" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-return">Expected Return per Annum (%)</label>

                <input type="number" id="sip-return" value="12" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-period">Time Period (Years)</label>

                <input type="number" id="sip-period" value="5" onkeyup="calculateSIP()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="sip-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="sip-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="sip-total-amount">0</span></p>

            </div>

        </div>


        <!-- Lumpsum Section -->

        <div id="lumpsum" class="section">

            <h2>Lumpsum Calculator</h2>

            <div class="input-group">

                <label for="lumpsum-investment">Total Investment (₹)</label>

                <input type="number" id="lumpsum-investment" value="5000" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-return">Expected Return per Annum (%)</label>

                <input type="number" id="lumpsum-return" value="12" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-period">Time Period (Years)</label>

                <input type="number" id="lumpsum-period" value="5" onkeyup="calculateLumpsum()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="lumpsum-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="lumpsum-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="lumpsum-total-amount">0</span></p>

            </div>

        </div>

    </div>


    <script>

        function showTab(tab) {

            document.querySelectorAll('.tab').forEach(el => el.classList.remove('active'));

            document.querySelectorAll('.section').forEach(el => el.classList.remove('active'));


            document.querySelector(`.tab:nth-child(${tab === 'sip' ? 1 : 2})`).classList.add('active');

            document.getElementById(tab).classList.add('active');

        }


        function formatAmount(value) {

            if (value >= 10000000) {

                return (value / 10000000).toFixed(2) + "cr";

            } else if (value >= 100000) {

                return (value / 100000).toFixed(2) + "L";

            } else if (value >= 1000) {

                return (value / 1000).toFixed(2) + "k";

            }

            return value.toFixed(2);

        }


        function calculateSIP() {

            const monthlyInvestment = parseFloat(document.getElementById('sip-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('sip-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('sip-period').value) || 0;


            const months = periodYears * 12;

            const monthlyRate = annualRate / 12 / 100;


            const futureValue = monthlyInvestment * ((Math.pow(1 + monthlyRate, months) - 1) / monthlyRate) * (1 + monthlyRate);


            const investmentAmount = monthlyInvestment * months;

            const estimatedReturns = futureValue - investmentAmount;


            document.getElementById('sip-investment-amount').innerText = formatAmount(investmentAmount);

            document.getElementById('sip-estimated-returns').innerText = formatAmount(estimatedReturns);

            document.getElementById('sip-total-amount').innerText = formatAmount(futureValue);

        }


        function calculateLumpsum() {

            const lumpsumInvestment = parseFloat(document.getElementById('lumpsum-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('lumpsum-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('lumpsum-period').value) || 0;


            const futureValue = lumpsumInvestment * Math.pow(1 + (annualRate / 100), periodYears);

            const estimatedReturns = futureValue - lumpsumInvestment;


            document.getElementById('lumpsum-investment-amount').innerText = formatAmount(lumpsumInvestment);

            document.getElementById('lumpsum-estimated-returns').innerText = formatAmount(estimatedReturns);

            document.getElementById('lumpsum-total-amount').innerText = formatAmount(futureValue);

        }


        window.onload = function () {

            calculateSIP();

            calculateLumpsum();

        };

    </script>

</body>

</html>

sip calculator desktop mobile tablet friendly

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>SIP & Lumpsum Calculator</title>

    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

    <style>

        body {

            font-family: 'Arial', sans-serif;

            background: linear-gradient(135deg, #1e90ff, #ff7f50);

            margin: 0;

            padding: 0;

            color: #fff;

        }


        .container {

            max-width: 800px;

            margin: 40px auto;

            padding: 30px;

            background: #fff;

            border-radius: 15px;

            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

            color: #333;

        }


        .tabs {

            display: flex;

            border-radius: 10px;

            overflow: hidden;

            margin-bottom: 20px;

            flex-wrap: wrap;

        }


        .tab {

            flex: 1;

            padding: 15px;

            text-align: center;

            cursor: pointer;

            background: #e0e5ec;

            font-weight: bold;

            transition: all 0.3s ease;

        }


        .tab.active {

            background: #1e90ff;

            color: #fff;

        }


        .section {

            display: none;

        }


        .section.active {

            display: block;

        }


        .input-group {

            margin-bottom: 20px;

        }


        .input-group label {

            display: block;

            margin-bottom: 8px;

            font-weight: bold;

            color: #555;

        }


        .input-group input {

            width: 100%;

            padding: 10px;

            border: 1px solid #ddd;

            border-radius: 8px;

            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

        }


        .results {

            margin-top: 20px;

            background: #f8f9fa;

            padding: 20px;

            border-radius: 10px;

        }


        .results p {

            margin: 10px 0;

            font-size: 18px;

            color: #333;

        }


        .results p span {

            font-weight: bold;

            color: #1e90ff;

        }


        #sip-chart, #lumpsum-chart {

            width: 100%;

            height: 400px;

            margin-top: 20px;

        }


        /* Responsive Design */

        @media screen and (max-width: 768px) {

            .container {

                padding: 20px;

            }


            .tabs {

                flex-direction: column;

            }


            .tab {

                padding: 12px;

            }


            .input-group input {

                padding: 12px;

            }


            .results p {

                font-size: 16px;

            }


            #sip-chart, #lumpsum-chart {

                height: 300px;

            }

        }


        @media screen and (max-width: 480px) {

            .container {

                padding: 10px;

                margin: 20px;

            }


            .input-group label {

                font-size: 14px;

            }


            .input-group input {

                font-size: 14px;

                padding: 10px;

            }


            .results p {

                font-size: 14px;

            }


            #sip-chart, #lumpsum-chart {

                height: 250px;

            }

        }

    </style>

</head>

<body>

    <div class="container">

        <!-- Tabs -->

        <div class="tabs">

            <button class="tab active" onclick="showTab('sip')">SIP Calculator</button>

            <button class="tab" onclick="showTab('lumpsum')">Lumpsum Calculator</button>

        </div>


        <!-- SIP Section -->

        <div id="sip" class="section active">

            <h2>SIP Calculator</h2>

            <div class="input-group">

                <label for="sip-investment">Monthly Investment (₹)</label>

                <input type="number" id="sip-investment" value="5000" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-return">Expected Return per Annum (%)</label>

                <input type="number" id="sip-return" value="12" onkeyup="calculateSIP()">

            </div>

            <div class="input-group">

                <label for="sip-period">Time Period (Years)</label>

                <input type="number" id="sip-period" value="5" onkeyup="calculateSIP()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="sip-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="sip-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="sip-total-amount">0</span></p>

            </div>

            <div id="sip-chart"></div>

        </div>


        <!-- Lumpsum Section -->

        <div id="lumpsum" class="section">

            <h2>Lumpsum Calculator</h2>

            <div class="input-group">

                <label for="lumpsum-investment">Total Investment (₹)</label>

                <input type="number" id="lumpsum-investment" value="5000" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-return">Expected Return per Annum (%)</label>

                <input type="number" id="lumpsum-return" value="12" onkeyup="calculateLumpsum()">

            </div>

            <div class="input-group">

                <label for="lumpsum-period">Time Period (Years)</label>

                <input type="number" id="lumpsum-period" value="5" onkeyup="calculateLumpsum()">

            </div>

            <div class="results">

                <p>Investment Amount: ₹<span id="lumpsum-investment-amount">0</span></p>

                <p>Estimated Returns: ₹<span id="lumpsum-estimated-returns">0</span></p>

                <p>Total Amount: ₹<span id="lumpsum-total-amount">0</span></p>

            </div>

            <div id="lumpsum-chart"></div>

        </div>

    </div>


    <script>

        google.charts.load('current', { packages: ['corechart'] });


        function showTab(tab) {

            document.querySelectorAll('.tab').forEach(el => el.classList.remove('active'));

            document.querySelectorAll('.section').forEach(el => el.classList.remove('active'));


            document.querySelector(`.tab:nth-child(${tab === 'sip' ? 1 : 2})`).classList.add('active');

            document.getElementById(tab).classList.add('active');

        }


        function calculateSIP() {

            const monthlyInvestment = parseFloat(document.getElementById('sip-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('sip-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('sip-period').value) || 0;


            const months = periodYears * 12;

            const monthlyRate = annualRate / 12 / 100;


            const futureValue = monthlyInvestment * ((Math.pow(1 + monthlyRate, months) - 1) / monthlyRate) * (1 + monthlyRate);


            const investmentAmount = monthlyInvestment * months;

            const estimatedReturns = futureValue - investmentAmount;


            document.getElementById('sip-investment-amount').innerText = investmentAmount.toFixed(2);

            document.getElementById('sip-estimated-returns').innerText = estimatedReturns.toFixed(2);

            document.getElementById('sip-total-amount').innerText = futureValue.toFixed(2);


            drawChart(investmentAmount, estimatedReturns, 'sip-chart');

        }


        function calculateLumpsum() {

            const lumpsumInvestment = parseFloat(document.getElementById('lumpsum-investment').value) || 0;

            const annualRate = parseFloat(document.getElementById('lumpsum-return').value) || 0;

            const periodYears = parseFloat(document.getElementById('lumpsum-period').value) || 0;


            const futureValue = lumpsumInvestment * Math.pow(1 + (annualRate / 100), periodYears);

            const estimatedReturns = futureValue - lumpsumInvestment;


            document.getElementById('lumpsum-investment-amount').innerText = lumpsumInvestment.toFixed(2);

            document.getElementById('lumpsum-estimated-returns').innerText = estimatedReturns.toFixed(2);

            document.getElementById('lumpsum-total-amount').innerText = futureValue.toFixed(2);


            drawChart(lumpsumInvestment, estimatedReturns, 'lumpsum-chart');

        }


        function drawChart(investmentAmount, estimatedReturns, chartId) {

            const data = google.visualization.arrayToDataTable([

                ['Type', 'Amount'],

                ['Investment Amount', investmentAmount],

                ['Estimated Returns', estimatedReturns],

            ]);


            const options = {

                title: 'Investment vs Returns',

                pieHole: 0.4,

                colors: ['#1e90ff', '#ff7f50']

            };


            const chart = new google.visualization.PieChart(document.getElementById(chartId));

            chart.draw(data, options);

        }


        window.onload = function () {

            calculateSIP();

            calculateLumpsum();

        };

    </script>

</body>

</html>




Previous Post Next Post