**Calculate 5% of a months rent **

For this example, we are using the Tenancy Datasource. And we want the resulting output on the template to produce 5% of rent amount.

**Field - tenancy.totalRent**

This field, will pull through the combined total rent for that tenancy.

**Helper - moneyFmt **

This helper formats the amount to UK £

**Helper - divide**

This helper divides

**Parameter - by what number**

This parameter works in conjunction with divide helper

By combining the above, we have the complete string as follows:

**{{ moneyFmt (divide tenancy.totalRent 20) }} **

Example if tenancy.totalRent is £700 then result would be £35

**Take the calculation one step further**

By adding another helper to the field we can apply a complete calculation on the output of the document.

**Helper - multiply**

This helper multiplies

**Parameter - by what number**

This parameter works in conjunction with divide helper

The string example

**{{ moneyFmt (divide (multiply tenancy.totalRent 105) 100) }} **

Example if tenancy.totalRent is £700 then result would be £735