Calculations: formulas and calculator quizzes
Calculations turn answers into numbers. A respondent types their ad spend and revenue, and your quiz shows their ROAS, picks the matching result and stores the value with the response. Free on every plan.
- 1
Give your questions a variable key. Open a question in the Questions step and fill in "Variable key (for calculations)", for example ad_spend. Number and slider questions give the value the respondent enters. Choice, Likert, yes/no, star and multi-select questions give the points of the chosen answer. Text questions cannot be used.
- 2
Open Results & scoring and find the Calculations card. Add a calculation, give it a name such as Cost per lead, and write its formula, for example ad_spend / leads. The key is filled in from the name; other formulas and mentions use it.
- 3
Formulas use numbers, + - * / and brackets, the functions min(a, b), max(a, b), round(x, 2) and abs(x), and conditions with if(condition, a, b) and > < >= <= = !=. A formula can read another calculation by its key, and the scores: @score.percent, @score.total, @score.max and each score category by its key.
- 4
Pick a format: number, percent or currency with your own symbol, and the number of decimals. Percent shows a ratio, so 0.25 is shown as 25%. Write (revenue - spend) / spend and do not multiply by 100.
- 5
Use "Try it" at the bottom of the card: type sample answers and see every result. Mistakes are flagged as you type, with the position of a syntax error, unknown names and circular references. A missing answer or a division by zero gives an empty result, never an error.
- 6
Decide who sees what. "Show to respondents" puts the value in the "Your numbers" block on the result page, the shareable results page and the PDF report. Switched off, only you see it: in the response view, the new-response email, exports and integrations.
- 7
Use the values in your copy with @calc.key, for example "You pay @calc.cost_per_lead per lead". It works in result messages, tier messages, the results email and in links, where the plain number is inserted.
- 8
Route on a calculation. In Outcomes, add a rule of type Calculation, for example ROAS at least 3. Each calculation also has "Disqualify on this number", and the Meta Pixel and GTM qualified-lead rule accepts a calculation too. An empty calculation never matches a rule.
- 9
Values are worked out on our server when the response is submitted and stored with it, so changing a formula later never changes old responses. You find them in the response view, the CSV export (one column per calculation), webhooks (the calculations object), field mappings and Analytics, which shows the average, lowest and highest value for the selected period.
- 10
To start from a working example, open Templates and pick a calculator: the ad campaign ROAS report, the coaching ROI calculator, the cost of no-shows calculator, the pricing and break-even calculator or the business health check with numbers.
Was this helpful?