# How to Create a Custom Calculator

To start building your first interactive calculator, you'll need an active Shout account. If you haven't created one yet, now is the perfect time to do so!

Signing up is quick, easy, and we offer a 14 day free trial of the Pro plan. This means you can explore the full potential of our calculator builder without any limitations.

## How to create a custom calculator

- Log into your Shout account
- Click the + icon
- Select Calculator

- Name your Calculator
- Select a One or Many calculator type
- Configure your compliance settings
- Click New Question in the Form menu
- Select a question type

Most question types can be used in calculators, we'll devote a section listing these a bit further down. - Add values to your question answers

## Building a Formula

Once you've added questions to your calculator, you can start building a formula. To make this as clear as possible we'll build an formula based on an example of a pricing quote calculator.

To create a calculator formula, you must first navigate to your results and select "Add New Result":

**Pro Tip**: You can add new results via the Calculator Results exit page or the Section Results.

### 1. Formula Setup

After you've clicked "Add New Result", a popup dialogue will appear where you can give name and description to your formula.

**Heading**: Text in this field will act as the title for the results section. For our example, this will be "Total Cost".**Description**: A field for you to add additional information regarding the results. For our example, this will read "Totals may differ from final quote dependant on tax".**Image**: Import an image to display alongside this result, e.g. a logo.**CTA/ Button**: Add a button below this result to send those who click it to an external URL, e.g. your website.

### 2. Create a new formula

To find the formula builder, click the + icon at the top of the popup:

The formula builder will then appear:

We recommend giving your formula a unique name, so you can easily identify it when choosing which results to show:

By default, all questions that can be used in your formula will be present.

To add questions into your formula, you can drag and drop them in from the Question data section on the left:

**Questions you add to your formula will be highlighted in blue in the questions sidebar.**

In our example Price Quote Calculator, we have two fields:

- Select a Plan
- Select a Number of Seats

So, for the purposes of this example we want to add the cost of the subscription and the cost of individual seats up.

Our first question is a multiple-choice, where value can be assigned to individual answers:

Our second question is a slider, where the values are set as the numbers along that slider (e.g. 0-10).

So, we need to define the cost of the "seats" in our formula. Let's say we want to price it at $75 per seat, we'd build this formula: Q_1+(Q2*75)

Make sure to hit "Save Changes".

Pro Tip: You'll also see above that if you add test values into the corresponding fields on the left, we'll calculate a test results for you at the bottom of the formula builder.

## Displaying Results

Now that you've set up your formula, you can head to the results page to see it in action:

You can also enable results to be calculated in real time as respondents answer questions:

After enabling this, your results will be displayed on the right of questions as respondents answer them:

We can also add more formulas to provide a break down of the costs involved:

### Calculation Ranges

Incorporate ranges into your outcomes whenever they prove essential. You have the flexibility to set both upper and lower limits in percentages. For instance, if your formula yields a result of $350 and the upper and lower bounds are defined at 10% each, the display will read as '$315 to $385'.

### Adding Variables

It's also possible to add a Prefix or Suffix to your final results. Common prefixes for online calculators are $, £, and €, whilst common suffixes are lb, kg, and %.

### Decimal Places

You also have the ability to customize the number of decimal places that display with your results.

### Testing Values

You can use the Test Value fields below questions in the formula builder to test if your formula is working as intended.

The calculation will appear at the bottom of the formula builder.

### Changing Question IDs

By default, your calculator questions will be assigned a number that displays in the formula builder.

This number can be customized in the Name/Id fields beneath a question.

This can help you easily identify questions in your formula.

## Calculator Question Types

Any question type that can have a value applied can be used to build formulas. Here's a list of the available question types below:

Standard question types

- Multiple-choice (Single-select)
- Multiple-choice (Multi-select)
- Opinion scale
- Slider
- Binary Yes/No
- Net Promoter Score
- Star rating
- Dropdown list
- Multi-select dropdown list

Multi-factor question types

- Matrix (common scale)
- Multi-factor slider
- Multi-factor scale

Numeric question types:

- Decimal
- Integer
- Age
- Money/currency

You can also add any other survey question types or form fields to calculators to collect research data or personal information.

## Calculator Operators

When building your formulas, you can input the following basic operators using your keyboard:

- + (Addition)
- - (Subtraction)
- * (Multiplication)
- / (Division)

You can also employ IF statements and other functions available in Excel formulas.

Find out more about our basic and advanced operators.