> For the complete documentation index, see [llms.txt](https://docs.stakeease.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stakeease.com/aggregator/technical/stakeease-fusion/calculations.md).

# Calculations

Using the example of the Stader-Kelp strategy, let us see how the calculation looks like:

* N: total number of users in a batch
* F: total fee in terms of ETH

$$
F = (\text{baseGasLimit} + N\*\text{marginalGasPerUser})\*\text{gasPrice}
$$

* E: total ETH staked into Stader

$$
E = (\text{ETH}*{\text{user 1}} + \text{ETH}*{\text{user 2}} + \text{ETH}\_{\text{user 3}} + .... )- F
$$

* R: total rsETH received for a batch from Kelp
* rsETH distribution per user:

$$
\text{rsETH}*{\text{user x}} = \frac{(\text{ETH}*{\text{user x}} - \frac{F}{N})}{E} \* R
$$
