I think the only way you will achieve this on one page is via javascript. Either using the OnBlur on a text field or OnClick to get the total.
If you are happy that the totals are shown on a separate page you could use PHP, post the form elements and calculate the POST values.
Cheers
Ian