##  Introduction
Calculated fields in surveys enable you to perform operations on the data collected in a survey, providing a more detailed and nuanced analysis of the responses. Configuring calculated fields involves the use of JavaScript to define the logic behind the calculations. The calculations can range from simple mathematical operations, such as addition and subtraction, to more complex functions involving conditionals and loops.
JavaScript code can reference other fields in the survey and perform programatic calculations. The result is then stored in the calculated field as an integer.
You can configure the logic used in calculated fields to suit your needs. For example, you can use conditional logic to assign different scores based on specific answers, or use loops to calculate a total score when multiple answers are selected. The flexibility of JavaScript allows for a wide range of scenarios, making calculated fields a powerful tool for data analysis in surveys.
**Note**
In calculated fields, ECMAScript 6 (also known as ES6 or ECMAScript 2015) is supported.
