Perform calculations with a merge field
If you want to make a calculation with values present in the merge fields (calculate an investment commission for example), the level of complexity is a little higher, but you just have to follow this tutorial.
You will find in the above document:
- how to define a variable
- the different possible operations
- how to round a value
- how to format a value.