# Formulas

This feature is included the Enterprise plan only.

A great new feature that allows you create your own **formula** using items from your questionnaire. You can use the /*-+() to create formulas using variables such as answers or quiz scores to calculate an average, for example.

Can't wait to create your formula? Make sure your questionnaire is completed then head straight to the **Extra Options **tab and select **Formulas**.

Click **Create formula** and you're on your way! Let's see how to build the formula.

**Title**- name your formula. Make it something that will be clear to you if you want to come back to edit it.**Variable**- you cannot edit the variable but you can copy it to use in outcomes, email templates or results.**The formula**- build you formula here. Use the circled symbols to put your formula together. Click on the**P**to access the drop-down menu of questionnaire variables that you can use in your formula. For example, you could write:*|q1_response|**(*|q2_response|*-*|q3_response|*)

One formula isn't enough for you? Click **Create formula** to add as many new formulas as you like.

Want to add a more advanced formula? Here's how you can use different variables in your formula:

**{QB1_CUSTOM_SCORE} -**the question block custom score value that was obtained. It is valid for the respondent who’s taking the questionnaire and will add the custom scores of each answer in one question block. You can use this variable in your formula or also as a piping variable**{QB1_CUSTOM_SCORE_PERCENTAGE} -**the question block custom score value as percentage. It's the same as the variable just discussed**{QB1_CUSTOM_SCORE}**but will calculate as a percentage.**{QB1_CUSTOM_MAX_SCORE} -**the maximum total score for one question block.**{Q1_CUSTOM_SCORE}**- the custom score value for this specific question.**{Q1_CUSTOM_SCORE_PERCENTAGE}**- this is the same as above**{Q1_CUSTOM_SCORE}**but then calculated as a percentage.**{CUSTOM_SCORE}**- the value of all custom scores for all questions (or for all question blocks) together.**{CUSTOM_SCORE_PERCENTAGE}**- the value of the custom score as a percentage compared to the max score.**{CUSTOM_MAX_SCORE}**- the maximum score for the whole questionnaire.

For advanced users we recommend **Math**`, `

a built-in object that has properties and methods for mathematical constants and functions. More information can be found here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math

Log in and try out the formulas feature for yourself!