> For the complete documentation index, see [llms.txt](https://docs.serenicity.fr/control/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.serenicity.fr/control/english/guides/calcul-des-metriques.md).

# Calculation of metrics

## Cyberweather

The calculation of cyber weather (cybertoxicity in cyT) is performed as follows:

$$
cyT = 1 \* in + 10 \* out \text{, with }\begin{cases} \text{ } in \text{ the number of toxic flows IN} \ \text{ } out\text{ the number of toxic flows OUT}\end{cases}
$$

The weighting of an **OUT** toxic flow is much more important because it represents a network device that initiates a communication to a toxic IP address.

There are 5 different levels of cyberweather:

<table><thead><tr><th width="287.3058082501834" align="center">Cybertoxicity (cyT)</th><th align="center">Icon</th></tr></thead><tbody><tr><td align="center">Equal to zero</td><td align="center"><img src="/files/dZGjUfUUNc5i3AvlpnHT" alt="" data-size="line"></td></tr><tr><td align="center">Between 1 and 5 inclusive</td><td align="center"><img src="/files/jAfkfXKvCiZeDJoYKgJf" alt="" data-size="line"></td></tr><tr><td align="center">Between 6 and 10 inclusive</td><td align="center"><img src="/files/CgDUooLFtxD2N6B1egti" alt="" data-size="line"></td></tr><tr><td align="center">Between 11 and 99 inclusive</td><td align="center"><img src="/files/M265vQhbUXokRKjyBUz7" alt="" data-size="line"></td></tr><tr><td align="center">100 and more</td><td align="center"><img src="/files/a8W8I7dBCunxTPEhnDGb" alt="" data-size="line"></td></tr></tbody></table>

## Cybercarbon

The cyber carbon represents the **equivalent in CO2 emissions** (CO2e) of the **volume of the network flows**.

According to the ADEME (French Environment and Energy Management Agency) and a report posed in January 2022, the study shows that the environmental impact of data transmission on :

* a **fixed** network (about **18 gCO2e / Go**)
* a **mobile** network (estimated at 50 gCO2e / Go)

{% embed url="<https://expertises.ademe.fr/economie-circulaire/consommer-autrement/passer-a-laction/reconnaitre-produit-plus-respectueux-lenvironnement/dossier/laffichage-environnemental/affichage-environnemental-secteur-numerique>" %}
Source of the environmental impact of fixed and mobile networks
{% endembed %}

In the case of Serenicity, the majority of the devices are installed on **fixed networks**.\
Therefore, the calculation is as follows:&#x20;

$$
cyC \text{ (in gCO2e) }= \frac{18 \* x}{10^9} \text{, with } x \text{ the sum of the flows in bytes}
$$

{% hint style="info" %}
The notation **gCO2e / kgCO2e** means **gram / kilogram CO2 equivalent**.
{% endhint %}
