Exemplo de custo total em JavaScript com função

<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