Note: Before we get started, take a moment to familiarize yourself with our tutorial on setting up templates with conditional logic found here. If you are already familiar with it let's proceed!

Setting up math is pretty easy

First add some decimal or numeric questions that you want to use for a calculation

Then add the question that you want to use to show the final number

Click add expression and fill in the result field with the equation

If you need help click the "?" to show the hints

Here is a more complicated example using a hidden field to calculate a value

Let's begin by setting up a sample template to convert Celsius to Fahrenheit. The equation that we need to set up looks like this: C x 1.8 + 32 = F.

1.) Our first question will be where we input the temperature in celsius. To do that simply add a question, and set the type to be decimal and leave the default value blank. Don't forget to give it a label!

2.) Next we need to add our two number values that will be used in our equation. Same process as step 1 but this time we set our default values to be the numbers used in our equation.

3.) For neatness purposes, we're going to make these values invisible in our forum since they will not change and to do that, simply scroll down to the question's display settings and uncheck Show in form.

4.) The final step is to create a question that will show us our result. This step is very crucial to follow correctly otherwise your math will not work. After selecting the integer question type you will click the Add Rule button which will allow you to set up your expression.

5.) If you click on the box beside Result, a dropdown list will appear that will let you arrange your expression with all the integer/decimal type questions within your template. In my case my expression will look as seen below.

Note: If you are ever unsure how to use the provided result options, you can always click the question mark icon beside Result which will give you some sample equations

6.) Once you have completed your equation you are all set! Make sure you save your template and head over to its dedicated survey which will appear on the survey sidebar. From here let's add a new survey, and see how it all works!

7.) If you followed this tutorial correctly, you should see the math doing its work. I have entered 45º in our celsius input box and was returned 113º in fahrenheit.

Did this answer your question?