---
title: "Build a calculator"
description: "Ask for numbers, work out a result with a formula and show it on a result screen, in a Score mode project."
url: https://youengage.me/help/build-a-calculator/
category: "Personalize"
type: howto
modes: [Score]
updated: 2026-12-04
verified: 2026-11-17
---

# Build a calculator

> Ask for numbers, work out a result with a formula and show it on a result screen, in a Score mode project.

## Before you start

- [Add and arrange blocks](https://youengage.me/help/add-and-arrange-blocks.md)

You will have a calculator: people type in numbers, and the result screen shows the answer your formula works out. Use it for cost, savings, time, price or readiness calculators.

Calculators are built in **Score mode**: there is no separate calculator mode. If your project is in another mode, see [Choose a project mode](https://youengage.me/help/choose-a-project-mode/).

In this example, a visitor enters how many reports they write each week and how long each takes, and the calculator shows the minutes spent.

## Ask for the numbers

1. On the **Projects** page, click **+ Create Project**, then **Score mode**, then **Start from scratch**.
2. In the top bar, make sure the **Content** tab is chosen. Click **Add content**, then **Number**.
3. Click the question on the canvas and type it, for example "How many reports do you write each week?"
4. Under the question, click **Enter label...** and type a label, for example "Reports per week". Click **Enter placeholder text...** and type an example number, for example 5. The visitor sees the placeholder in the empty box.
5. Add a second **Number** question the same way: "How many minutes does one report take?", label "Minutes per report", placeholder 30.

![The Content tab with a Number question open: its label reads Reports per week, and the Formula button is above the canvas](https://a.storyblok.com/f/295308468495356/2732x1720/fa851eb243/build-a-calculator-number-question.png)

Each Number question can hold one or more number fields. Click **Add field** under a question to ask for another number in the same screen.

## Write the formula

1. Above the canvas, click **Formula**. The **Formula Builder** opens. On the left, the **Questions** list shows each question as Q1, Q2 and each of its number fields as A1.
2. The formula box may already hold a sum of your number fields, such as `q1a1+q2a1`. Replace it with your own formula. To use a number a visitor typed in, write **Q**, the question number, **A**, and the field number. Question 1's first field is `q1a1`; question 2's is `q2a1`. For example:

   ```
   q1a1*q2a1
   ```

3. Click **Save**.

![The Formula Builder dialog with the formula q1a1*q2a1, and the list of questions and their number fields on the left](https://a.storyblok.com/f/295308468495356/2732x1720/de99c426d9/build-a-calculator-formula-builder.png)

You can use `+`, `-`, `*` and `/`, brackets to set the order, and the buttons under the box: **power**, **min**, **max**, **log**, **round**, **roundUp**, **roundDown**, **IF statement**, **IF X And Y** and **IF X OR Y**. To wrap part of a formula in a function, select it in the box and click the function's button.

> [!TIP]
> Type the formula rather than clicking the variables in the list. Clicking them puts each one at the start of the box, so a formula can come out in a different order than you meant.

## Show the result

1. Under the list of screens, click **Add end screen**. A **Result screen** appears. On the canvas it reads "Your result is" followed by the **@Score** chip. The chip shows what your formula worked out.
2. Click **Description (optional)** and say what the number means, for example "minutes spent on reports every week".

![The Content tab with a Result screen open: it reads Your result is, then the @Score chip, then the description](https://a.storyblok.com/f/295308468495356/2732x1720/896594aba8/build-a-calculator-result-screen.png)

Publish the project and try it: with 5 reports of 30 minutes each, the result screen reads "Your result is 150".

## Add points from answers

A calculator can also use answers to other questions. Add a multiple choice question, such as **Yes/no**, then:

1. In the top bar, click the **Workflow** tab and click the question's box.
2. On the **Scoring** tab, leave **Correct** off and type points in the number field of each answer.
3. Click **Save**.
4. Use the question in the formula by its number. If it is question 3, write `q3`. For example `q1a1*q2a1+q3` adds the points of the chosen answer to the result.

A Number question shows "No answers available." on the **Scoring** tab, because its value is the number typed in.

## What happens next

Share the calculator: [Share a link and a QR code](https://youengage.me/help/share-a-link-and-qr-code/). For quizzes where answers earn points and result screens depend on the total, see [Set up scoring and result screens](https://youengage.me/help/set-up-scoring-and-result-screens/).

## Related articles

- [Set up scoring and result screens](https://youengage.me/help/set-up-scoring-and-result-screens.md)
- [Add and arrange blocks](https://youengage.me/help/add-and-arrange-blocks.md)
