personally, i would do calculations from a script....
# advancedpdf
r
personally, i would do calculations from a script. you can use the assign directive and + operator tho. functions are also available in freemarker.