The following is an example of using the HTML5 output tag to do some calculations on the data within the form. Back to the User Agent Man HTML5 Forms article.
output
Enter in the price and we will calculate what you owe us.