# Epoch Score Calculation

<figure><img src="/files/WaAqt89qIpEFmd4FfjLN" alt=""><figcaption><p>Epoch Score Array</p></figcaption></figure>

The Epoch Score Array is calculated by the Validation Layer of the Flex Node. Once a user connects his wallet, his Epoch Score Array calculation begins. On the day of connecting his wallet, he is awarded an *"F"* at *Array Index 0.* Each Index corresponds to one Epoch - 24 hours beginning from the end of the previous epoch.

For every epoch, the score calculation is done as follows:

1. If a wallet has 0 activity in a given epoch, its score is 0.
2. The wallet with the highest score in a given epoch is F.
3. The wallets are arranged in descending order of weight. The wallets with the highest weight are first. When two wallets have the same score, they are still given unique ranks.&#x20;
4. If there are fewer than 71 active wallets in a given epoch, the Epoch score for all wallets is *8.* The highest wallet continues to receive the *"F"*
5. The wallet list is then divided into 70 sections and assigned a Hexadecimal Character based on the section they are in:

| Epoch Score | Section Number (inclusive)                                              |
| ----------- | ----------------------------------------------------------------------- |
| 0           | This consists of all wallets with 0 weight for the given epoch          |
| 1           | 1                                                                       |
| 2           | 2                                                                       |
| 3           | 3-5                                                                     |
| 4           | 6-8                                                                     |
| 5           | 9-11                                                                    |
| 6           | 11-13                                                                   |
| 7           | 14-15                                                                   |
| 8           | 16-30                                                                   |
| 9           | 31-45                                                                   |
| A           | 46-55                                                                   |
| B           | 56-63                                                                   |
| C           | 64-67                                                                   |
| D           | 68-69                                                                   |
| E           | 70                                                                      |
| F           | This is awarded to the wallet with the highest weight for the given day |

The output resembles a collection of Arrays that are synced at the end:&#x20;

<figure><img src="/files/YYrtmSyh3PRSsaWU5n2z" alt=""><figcaption><p>Epoch Array List Visualization</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flexecosystem.gitbook.io/flex-docs/protocol/flex-validator-nodes/getting-started/epoch-score-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
