# Evaluation form scoring logic

The evaluation is scored based on a point system.

## How scores are calculated?

First, for each question, the application tracks two values:

- Points that are earned based on a response to this question
- Maximum points that the questions may potentially earn

A ratio between these two values determines a total question score.

For example, if a simple **Yes/No** question is configured with 5 points for a **yes** response
and 0 points for a **no** response, then the maximum question score is 5.

When such a question is answered **yes**, then the question's score is 5 out of 5 (or 100%).
If it is answered **no**, then the question's score is 0 out of 5 (or 0%).

These calculations assume that a question has a weight of 1 (i.e. it is not weighted). For cases when a custom weight is applied to a question, check the section below for an explanation of how the section score is affected.

Second, for each section, the application calculates a ratio between the following values:

- An aggregated sum of earned points for each question in the section
- A maximum possible score for the section, which is the sum of the maximum possible scores of all the questions in the section.

If **N/A** (not applicable) option is selected as a response to a question, then such a question is
treated as if it doesn't exist and its maximum possible score is not used when calculating
the section maximum score.

Note

**N/A** option is not the same as **0 (zero)** points. When a question is answered with 0 points, such a score is
treated as 0 out of X (where X is the maximum possible question score).

**Example:**

A section has 10 questions, where each question is a simple **yes/no** question with the maximum possible score 5.

If one of the questions is answered **no** and the remaining 9 questions are answered **yes**, then the total section
score would be 45 out of 50 (or 90%).

But, if one of the questions is answered **N/A** instead of **no**, then such question's maximum score doesn't affect
a maximum section score, i.e. the total section score would be 45 out of 45 (or 100%).

Finally, a report score is calculated as a ratio between the following values:

- An aggregated sum of earned points for each section in the report
- A maximum possible score for the report, which is the sum of the maximum possible scores of all the sections in the report.

If the section is marked as **N/A** (Not applicable), then such a section is treated as it doesn't exist and it doesn't
affect the maximum possible report score. This works similarly to the question's **N/A** behavior.

## How weight is applied to questions and sections?

Each section and question could have its own weight that determines how much it influences the total score for the evaluation report. By default, the sections and questions are not weighted (their weight value is 1).

**Example**:

A section has two questions:

- The first question with options
**yes**(5 points),**no**(0 points) and**N/A**type, and a weight of 10. - The second question with options
**yes**(5 points),**no**(0 points) and**N/A**type, but a weight of 1.

A question score is multiplied by its weight, and a resulting value is used when calculating a section score.

In our example, the maximum possible section score is 55 (where `55 = 5 x 10 + 5`

)

If both questions are answered **yes**, then the section score would be 55 out of 55 (or 100%).

If the first question is answered **no**, but the second question is answered **yes**, then the section score
would be 5 out of 55 (or 9%).

In a reverse situation, when the first question is answered **yes**, but the second one is answered **no**,
the section's score would be 50 out of 55 (or 91%).

In case the first question is answered **N/A**, and the second one is answered **yes**, then a score of the section
would be 5 out of 5 (i.e. the application excludes the first question completely from the calculation).

Similar logic works for section weights.