Formula Calculator

Turn a quiz into an interactive calculator: mortgage, ROI, calories, renovation cost โ€” anything.

Updated: April 2026

What is the Formula Calculator#

The Formula Calculator is two special step types in the quiz builder:

๐Ÿงฎ

Formula (input step)

The visitor enters numeric data: loan amount, room area, number of employees. Supports sliders, number fields, ranges and percentages.

๐Ÿ“Š

Result (result step)

Automatically calculates an expression from the entered data and shows the result: monthly payment, ROI, calorie intake, etc.

All calculations happen directly in the browser โ€” answers appear instantly, without any server request.

๐Ÿ’ก

The Formula Calculator is available from the Comfort plan. Comfort+


Features by Plan#

FeatureStandardComfortPremium
Formula steps per quizโ€”up to 3up to 10
Basic operators (+ โˆ’ ร— รท % ())โ€”โœ…โœ…
Advanced operators (^ sqrt abs round min max if)โ€”โ€”โœ…
AI Formula Generatorโ€”10 req/hr30 req/hr
Conditional messagesโ€”up to 3unlimited
Calculator templatesโ€”10 basic30+ by niche
Multiple result blocks (MultiResult)โ€”โ€”up to 5
Benchmark comparisonโ€”โ€”โœ…
AI comment on resultโ€”โ€”โœ…
PDF downloadโ€”โ€”โœ…

Quick Start โ€” from a Template#

The fastest way is to use a ready-made calculator template:

  • Click "+ New Quiz" on the main page.
  • Switch to the "Calculator" tab in the template gallery.
  • Choose a suitable template and click "Use".
  • Edit the fields, formulas and texts to match your product.

Available calculator templates:

PlanCategoryTemplates
Comfort+FinanceMortgage calculator, Compound interest, Savings
Comfort+Real estateRental yield, Renovation budget, Price per mยฒ
Comfort+AutomotiveFuel savings, Maintenance cost
Comfort+E-commerce / HealthDiscount, Calorie deficit
PremiumAutomotiveCar loan, Lease vs buy
PremiumBusinessProfit margin, CAC, LTV, Break-even, Freelance rate
PremiumHealth / TravelBMI, Holiday budget
PremiumCrypto / Ads / LogisticsCrypto profit, Ad budget, Shipping cost
๐Ÿ’ก

The first 10 templates are available on Comfort. All 30+ niche templates unlock on Premium. Premium


Formula Step โ€” Input Fields#

Add a Formula step in the builder. In the step editor configure the fields the visitor will fill in.

Field Types

TypeWhat the visitor entersExample
NumberAny numeric valueLoan amount: 500,000
SliderValue via a slider with min/maxTerm: โ€”โ€”โ—โ€”โ€” 15 years
Percentage (%)Value from 0 to 100Rate: 12.5%
CurrencyNumber with a currency symbol$ 25,000
RangeTwo sliders: min and maxBudget from $100,000 to $500,000

Field Settings

  • Variable name โ€” Latin letters without spaces (e.g. loan_amount). Used in the formula.
  • Label โ€” text the visitor sees ("Loan Amount").
  • Min / Max / Step โ€” constraints for the slider or number field.
  • Default value โ€” pre-filled value.
  • Prefix / Suffix โ€” symbols around the value (โ‚ด, $, mยฒ, kg).
  • Required โ€” the visitor cannot proceed without filling in this field.
๐Ÿ’ก

For Range fields two variables are available in the formula: name_min and name_max. For example, a field called budget โ†’ variables budget_min and budget_max.


Formula#

On the Result step open the "Formula Result" block โ€” this is where the visual formula builder is located.

Visual Block Builder

The formula is assembled from coloured chip-blocks โ€” no need to type text manually. Three sections at the bottom of the editor:

  • Variables โ€” buttons with the field names from the Formula step (e.g. loan_amount, rate). Click to add to the formula.
  • Operators โ€” basic (+ โˆ’ ร— รท % ( )) available from Comfort. Advanced (^ and math functions) โ€” Premium only.
  • Number โ€” type a constant and click "+" to add a numeric block (e.g. 100, 1200).

Blocks on the canvas can be dragged to reorder. The "โŒซ" button removes the last block; "ร—" on a chip removes that specific block.

๐Ÿ’ก

Below the canvas a live preview (orange card) appears in real time, or an error message (red card) if the formula is invalid. This lets you see immediately whether the formula is correct โ€” without pressing "Check".

Syntax

Operator / FunctionPlanMeaningExample
+ โˆ’ ร— รทComfort+Basic arithmeticprincipal ร— rate รท 12
( )Comfort+Grouping(a + b) ร— c
%Comfort+Percentage / remainderscore % 100
^PremiumExponentiation1.05 ^ 12
sqrt(x)PremiumSquare rootsqrt(area)
abs(x)PremiumAbsolute valueabs(profit โˆ’ cost)
round(x)PremiumRoundround(result)
min(a, b)PremiumSmaller of twomin(budget, cost)
max(a, b)PremiumLarger of twomax(0, profit)
if(cond, a, b)PremiumConditional expressionif(score > 50, 1, 0)

Formula Examples

CalculatorFormula
Mortgage (monthly payment)loan_amount ร— (rate รท 12) รท (1 โˆ’ (1 + rate รท 12) ^ (โˆ’term ร— 12))
ROI (%)(revenue โˆ’ cost) รท cost ร— 100
Daily caloriesweight ร— 10 + height ร— 6.25 โˆ’ age ร— 5 + 5
Renovation cost per mยฒarea ร— price_per_sqm + fixed_costs
Payback periodinvestment รท monthly_profit รท 12
โš ๏ธ

The formula does not support JavaScript code or string values. The if() function is available on Premium only. For conditional logic without Premium use Conditional Messages (described below).


AI Formula Generator#

Comfort+

Click the "AI Formula Builder" button in the formula editor โ€” describe in plain language what you want to calculate and AI will generate the formula automatically.

  • On Comfort โ€” up to 10 requests per hour.
  • On Premium โ€” up to 30 requests per hour.
๐Ÿ’ก

AI sees your variable names โ€” the more descriptive the field names, the better the generated formula. For example, loan_amount is clearer than field1.


Result Format#

For each result block specify how to display the computed value:

FormatExample result
Integer12,450
Decimal12,450.75
Currency (โ‚ด, $, โ‚ฌ)$ 12,450
Percentage87.5%

Additionally configurable: decimal places, thousands separator, prefix and suffix around the value.

Show Input Details (Breakdown)

Enable the "Show Details" toggle in the result block โ€” below the numeric value all field values entered by the visitor are displayed. For example: "Property value: 3,000,000 ยท Down payment: 20%". Useful for calculators where transparency of the calculation matters.

Saving Changes

The result block editor has its own "Save" button. Changes are not applied automatically โ€” click "Save" to confirm. If you close the editor with unsaved changes the system will ask for confirmation.


Conditional Messages#

Comfort+

Below the numeric result you can show personalised text depending on the value. For example: "Excellent ROI!" or "The payback period exceeds the recommended threshold โ€” consider other options".

PlanMessage limit
Comfortup to 3 messages per result block
Premiumunlimited

How to Set Up

  • In the result block click "+ Add Message".
  • Enter a condition in the field โ€” use result to reference the computed value. For example: result >= 20 or result < 0.
  • Enter the message text that the visitor will see.
  • Optionally add a CTA button with a link (e.g. "Get a consultation").

The first message whose condition is met is shown. If none match โ€” no message is shown.


Multiple Result Blocks#

Premium

A single Result step can show multiple independent calculations simultaneously. For example:

  • Monthly payment and Total overpayment for a mortgage calculator.
  • ROI and Payback period for a B2B calculator.
  • Daily calories and Calorie deficit for weight loss.

Each block has its own formula, format, conditional messages, AI comment and benchmark. On Premium up to 5 result blocks are available. On Comfort and Standard this feature is unavailable (one standard result).


Benchmark Comparison#

Premium

Displays a progress bar showing where the visitor's result sits relative to a reference (market average) value.

  • Reference value โ€” enter manually or click "Auto" to let the system calculate the median from all real responses.
  • Label โ€” caption below the progress bar (e.g. "Market average").
๐Ÿ’ก

The "Auto" button becomes useful once your calculator has collected a few dozen responses โ€” it automatically calculates the median.


AI Comment on Result#

Premium

For each result block you can enable an AI comment โ€” a personalised text conclusion generated by Claude based on the visitor's specific value.

Settings

  • Enable the "AI Comment" toggle in the result block.
  • Choose a tone: Professional, Friendly, Direct or Motivational.
  • The comment is generated automatically after the visitor sees their result. It takes into account the specific value, format and benchmark.

Example AI comment for a mortgage calculator:

"A monthly payment of $1,850 represents approximately 37% of the average household income in your region. Financial advisors recommend keeping housing costs below 30โ€“35% of income โ€” consider increasing your down payment or extending the loan term."


PDF Download#

Premium

On the result step the visitor can download the results as a PDF document. The PDF contains:

  • Quiz title and generation date.
  • All result blocks with computed values.
  • Breakdown of entered data.
  • AI comment (if enabled).
  • Benchmark progress bar.

The PDF is generated directly in the browser โ€” no data is sent to the server. The file is automatically named after the quiz title.

How to Enable

  • Open the Result step editor in the builder.
  • Enable the "PDF Export" toggle in the step's general settings.
  • A "Download PDF" button will appear on the result step for all visitors.

Calculator Analytics#

Comfort+

In the Analytics section, quizzes with a Formula step get two additional blocks:

๐Ÿ“Š

Value distribution

Histogram and statistics (mean, median, P25, P75) for each numeric field. Shows how the data entered by visitors is distributed.

๐Ÿ“ˆ

Impact on completion

Correlation between field values and quiz completion rate. Helps identify which numeric ranges have the lowest conversion.


FAQ#

Can I use a formula without a Formula step?

No. The formula references variables from a specific Formula step. Without it there is no source of numeric data for the calculation.

What if the visitor enters an invalid value?

Number and Slider fields only accept numeric values. If the formula result cannot be computed (e.g. division by zero) โ€” the result block is not shown.

Are conditional expressions (if) supported in the formula?

The function if(condition, if_true, if_false) is available on Premium. On Comfort use Conditional Messages to show different text depending on the value.

How many Formula steps can I add to one quiz?

On Comfort โ€” up to 3 steps. On Premium โ€” up to 10 steps. On Standard, Formula steps are unavailable.

Is there a limit on formula complexity?

The maximum expression length is 500 characters. This is sufficient for any real-world calculator. For security the formula cannot contain JavaScript code, system calls or access to browser APIs.