Calculators: build a calculator once, use it everywhere
Build calculators with inputs, rate tables and formulas in one library, then use them in gifts, quizzes, website calculators, opportunities, automations and reports.
The Calculators library is one place to build the calculators your business uses again and again, then use them everywhere: in gifts, quizzes, website calculators, opportunities, automations and reports. You build a calculator once, and every place that uses it stays in step.
Find it at https://app.trustpager.com/operations/calculators. You see a list of your workspace's calculators. Open one to get the builder.
An example: a home loan snapshot
A mortgage broker builds a calculator called Home loan snapshot. It asks for the purchase price, the deposit and the state. It works out the loan amount, the LVR (loan to value ratio), the stamp duty from a state duty table and the monthly repayment. With a price of $900,000 and a deposit of $180,000, it shows a loan of $720,000, an LVR of 80% and a repayment of $4,316.76 a month. The figures are the same every time for the same answers, with no AI and no credits.
What a calculator is made of
- Inputs: the questions it asks. An input can be a number, an amount of money, a percentage, a choice or a yes/no.
- Rate tables: rates a formula looks up. Either tiers (brackets) that change as an amount grows, like stamp duty, or a value for each choice, like a rate for each state.
- Results: the figures worked out by formulas. Each result can be shown or hidden. A hidden result is a working step that visitors never see. It is also never sent to a website visitor's browser, unless a result that is shown is worked out from it.
The builder has tabs for inputs, tables, results and settings, with a live preview beside them so you can type answers and watch the figures change. Formulas, keys and rate tables work exactly as described in https://trustpager.com/help-center/calculated-results-gifts-quizzes.
Build one
- Open https://app.trustpager.com/operations/calculators and create a calculator.
- Add your inputs, and any rate tables.
- Add your results and decide which ones are shown.
- Check the live preview with some realistic answers.
- Publish it.
Publishing and versions
Publishing a calculator creates a new version. Every gift, quiz and website calculator that is linked to it moves to the new version, so you change a rate in one place and it is right everywhere.
Try it on a real opportunity
In the builder's preview, choose Try it on a real opportunity and pick an opportunity. The inputs fill in from it for you. TrustPager uses the last saved run on that opportunity first, then the opportunity's own fields, such as its value and its custom fields.
Calculators on opportunities
Every opportunity has a Calculators card listing your calculators. Your team can run one from there, and each saved run is kept with its answers and its results, so you can see how a quote or a loan looked on the day. Only figures that TrustPager itself worked out are shown on an opportunity.
In a calculator's settings you choose which places may save runs onto opportunities: the client portal, your website, your team and automations.
Use a calculator in a gift or a quiz
In a gift or quiz builder, use the calculator link panel to link a library calculator. You need permission to read Calculators to link one. When a contact answers a linked gift or quiz in a client portal, on a Lead Magnet page or in a website calculator, TrustPager saves a run onto their opportunity, as long as the calculator allows that place to save. More: https://trustpager.com/help-center/gifts-made-for-each-person and https://trustpager.com/help-center/quizzes.
Use a calculator in an automation
Automations have a step called Run a calculator. Pick a live calculator. Each input starts from the opportunity's last run, otherwise from the opportunity's own fields, or you can set a fixed value. Choose whether to save the run onto the opportunity.
Later steps can use the results as variables: calculator.lvr is the number, and calculator.lvr_display is the written out version, for example "$4,316.76". A later step's Only run if condition can test a result too. For example, only send an email if calculator.lvr is more than 80. More on automations: https://trustpager.com/help-center/build-trigger-automations.
Report on the results
In reports there is a data source called Calculator Results. It holds the latest run for each opportunity and each calculator, along with the opportunity's pipeline and stage. Every numeric result shows up as a field you can group, filter as a number and total. More on reports: https://trustpager.com/help-center/build-reports-dashboards.
Using your assistant
Your own Claude, connected through the TrustPager connector, can list, read, create, update, publish, try and run calculators and list their runs. This needs the calculators read and write permissions. For the exact names see https://docs.trustpager.com/reference#calculators.
If something looks wrong
- A figure says Not available: an answer is missing, a formula divides by zero, or a rate table has no row for the answer given.
- A run was not saved on the opportunity: check the calculator's settings. The place the run came from (portal, website, team or automation) must be switched on.
- I cannot link a calculator to my gift or quiz: you need permission to read Calculators.
- A change is not showing in a gift: publish the calculator. Linked gifts, quizzes and website calculators move on when a new version is published.