SScale Themedocs

Interactive calculator section for estimating ROI, savings, or custom costs.

Calculator

The Calculator section provides an interactive calculator allowing visitors to estimate a return on investment (ROI), potential savings, or a custom cost. A powerful conversion tool that engages the visitor and demonstrates the value of your offer.

How It Works

The visitor enters values in the input fields. The result is calculated in real time based on the configured formula (addition, multiplication, subtraction, or custom formula). All without page reload.

Main Settings

SettingDescriptionOptions
OperationType of calculationAddition / Multiplication / Subtraction / Custom
Custom formulaCustom mathematical expressionText (e.g., (A * B) - C)
LayoutForm layoutVertical / Horizontal
Result formatResult display formatNumber / Currency / Percentage
CurrencyCurrency symbolEUR / USD / GBP / Custom
Result prefixText before the resultText (e.g., "You save")
Result suffixText after the resultText (e.g., "per year")
Result animationAnimated counter for the resultOn / Off

Available Blocks

BlockDescription
HeadingSection title
TextDescription / instructions
Calculator InputNumeric input field
ButtonCTA button (e.g., "Get a quote")

Calculator Input Block

Each input field is a block with these parameters:

FieldDescription
LabelField name (e.g., "Current monthly budget")
PlaceholderHint text in the field
Default valuePre-filled value
MinMinimum allowed value
MaxMaximum allowed value
StepIncrement (e.g., 10, 100)
TypeText field / Slider / Select
VariableVariable letter (A, B, C, D)

Custom Mode (Custom Formula)

Custom mode allows you to define a free mathematical formula using variables A, B, C, D corresponding to the Calculator Input blocks.

Formula examples:

FormulaDescription
A + BSimple addition
A * 12Annualized value
(A * B) - CCalculation with subtraction
A * B * 0.3With fixed coefficient
(A - B) / A * 100Savings percentage

Use Cases

Savings Calculator

  • Horizontal layout
  • Input A: "Current monthly expense" (slider, 0-5000)
  • Input B: "Number of months" (select, 6/12/24)
  • Formula: A * B * 0.30
  • Prefix: "You save"
  • Format: Currency EUR
  • Button: "Start saving"

ROI Calculator

  • Vertical layout
  • Input A: "Monthly revenue" (text field)
  • Input B: "Current conversion rate %" (slider, 0-10)
  • Input C: "Estimated improvement %" (slider, 0-50)
  • Custom formula: A * (B / 100) * (C / 100) * 12
  • Suffix: "in additional revenue per year"

Price Estimator

  • Horizontal layout
  • Input A: "Quantity" (slider, 1-1000)
  • Input B: "Product type" (select with unit prices)
  • Operation: Multiplication
  • Format: Currency
  • Button: "Request a quote"
💡Pre-fill the fields with realistic values that show an impressive result. The visitor will immediately see the value without having to enter anything.
⚠️The custom formula uses a secured client-side eval. Only basic mathematical operators and variables A-D are allowed. There is no risk of code injection.
ℹ️The counter animation (when the result changes) creates a "slot machine" effect that draws attention. It is automatically disabled if prefers-reduced-motion is active.