Пример общей стоимости в JavaScript с функцией

<script>
var User_Name = document.getElementById("User_Name").value;
var Quantity = document.getElementById("Quantity").value;
var Price = document.getElementById("Price").value;
var Tax = .0825;

function calculateTax(Price) {
document.getElementById("Total").value = Price * Tax;
}
</script>
Mushy Mouse