Possible To Make Calculation In Tags?

Hi

I changed the invoice template for one of my customers.

However I miss some fields, like the tax on the shipping costs.
Is it possible to make my own calculations in the template?

Thanks in advance!