Where did i went wrong in calculating the discount? Could someone please guide me, thanks.
LFC WHOLESALE SHOP
<label for="Item1">Item1:</label>
<input id="price"
<p> </p>
<label for="Item2">Item2:</label>
<input id="price"
<p> </p>
<label for="LoyaltyDiscount">LoyaltyDiscount:</label>
<input id="discount">
<br> <br>
<button onclick="CalculateTotalAmount()">Calculate Total Amount