Javascript:Calculating Discount

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


We would need to see your Javascript to help you. The CalculateTotalAmount() function would be set up there.

Your <button> is also missing a closing tag.