[eluser]Michael Wales[/eluser]
This is something that should be completed in the controller and assigned a new variable (total, maybe)?
If you really wanted to do it in the View - I'm pretty sure you will need to drop the Template class and start using PHP in your view (which will also speed up site loading and decrease server load).