How to calculate lifetime and last month roa base on pool's history?

Hello there, I’m new to cardano and have a question: how to calculate a pool’s roa (lifetime and based on last month performance) ?

I get pool’s history from blockfrost api but couldn’t figure out how to put those numbers together
https://docs.blockfrost.io/#tag/Cardano-Pools/paths/~1pools~1{pool_id}~1history/get

Thanks in advance

I don’t know if this will help u but take a look

Cheers,

Thanks Alex, I read that post but it’s still not very clear to me