how to calculate percentage discount using calculator?

Today, We want to share with you how to calculate discount.In this post we will show you simple discount rate calculator, hear for original price calculator we will give you demo and example for implement.In this post, we will learn about Mifflin st jeor calculator with Equation and Formula with an example.

how to calculate discount percentage formula?

index.html

<!Doctype html>
<html>
<body>
    <input id="price">Your Price
    <br><br>
    <input id="discount">%
    <br><br>
    <button onclick="getPrice()">
Get total
</button>
    <br><br>
    <input readonly id="total">
    <script>
        getPrice = function() {
            var userInput1 = Number(document.getElementById("price").value);
            var userInput2 = Number(document.getElementById("discount").value) / 100;
            var totalValue = userInput1 - (userInput1 * userInput2)
            document.getElementById("total").value = totalValue.toFixed(2);
        }
    </script>
</body>
</html>

I hope you get an idea about list price calculator.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.