FD Return calculator - compounded intrest calculator code -free htm code

We will try to give you a new code for every day . 
You can create your tool website and earn unlimited with google and google adsense. 
You can create your free website with the google product name as Blogger. 
You just open Blogger.com 
create your account and write or paste this code in the html view of your blogger. 

so the Code is given below you can copy and paste in your website . 

Here is a code for FD return calculator compounded intrest calculator  



<html>

<head>

    <title>FD Return Calculator (Compound Interest)</title>

    <style>

        body {

            font-family: Arial, sans-serif;

        }


        .container {

            max-width: 400px;

            margin: 0 auto;

            padding: 20px;

            border: 1px solid #ccc;

            border-radius: 5px;

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

        }


        h1 {

            text-align: center;

        }


        .form-group {

            margin-bottom: 20px;

        }


        .form-group label {

            display: block;

            font-weight: bold;

        }


        .form-group input[type="text"] {

            width: 100%;

            padding: 8px;

            border: 1px solid #ccc;

            border-radius: 4px;

            box-sizing: border-box;

        }


        .form-group input[type="submit"] {

            width: 100%;

            padding: 10px;

            background-color: #4CAF50;

            color: white;

            border: none;

            border-radius: 4px;

            cursor: pointer;

        }


        #result {

            text-align: center;

            margin-top: 20px;

            font-weight: bold;

        }

    </style>

</head>

<body>

    <div class="container">

        <h1>FD Return Calculator (Compound Interest)</h1>

        <form id="calculatorForm">

            <div class="form-group">

                <label for="principalAmount">Principal Amount:</label>

                <input id="principalAmount" placeholder="Enter principal amount" required="" type="text" />

            </div>

            <div class="form-group">

                <label for="interestRate">Annual Interest Rate (%):</label>

                <input id="interestRate" placeholder="Enter annual interest rate" required="" type="text" />

            </div>

            <div class="form-group">

                <label for="investmentDuration">Investment Duration (Years):</label>

                <input id="investmentDuration" placeholder="Enter investment duration in years" required="" type="text" />

            </div>

            <div class="form-group">

                <input id="calculateBtn" type="submit" value="Calculate" />

            </div>

        </form>

        <div id="result"></div>

    </div>


    <script>

        document.getElementById('calculatorForm').addEventListener('submit', function (event) {

            event.preventDefault();

            calculateReturns();

        });


        function calculateReturns() {

            var principalAmount = parseFloat(document.getElementById('principalAmount').value);

            var interestRate = parseFloat(document.getElementById('interestRate').value);

            var investmentDuration = parseFloat(document.getElementById('investmentDuration').value);


            var compoundInterest = principalAmount * Math.pow((1 + (interestRate / 100)), investmentDuration);

            var interestEarned = compoundInterest - principalAmount;


            var resultElement = document.getElementById('result');

            resultElement.innerHTML = "Compound Interest: $" + interestEarned.toFixed(2) + "<br>Total Amount: $" + compoundInterest.toFixed(2);

        }

    </script>

</body>

Comments

Popular posts from this blog

बस माल पैक करो और कंपनी को वापस कर दो और 60 हजार रुपए महीना कमाओ, bindi packing business

3 ONLINE EARNING APP , NO CONDITION , NO INVESTMENT , ONLY EARNING , घर बैठे पैसा कमाने के लिए 3 सबसे बढ़िया APP .

हर महीने 27 लाख और सालाना 3 करोड़ 62 लाख की कमाई देने वाला बिज़नेस लागत भी है कम