I am trying to replicate calculator for ethereum mining available at
https://www.cryptocompare.com/mining/calculator/eth
So far I got to following formula
Seconds in 1 month
/ (Total Hash Power MH/s
/ My Hash Power MH/s * Block Time s
) So in my case with following parameters:
Seconds per month: 2592000
Total Hash power MH/s: 30728202.35
My hash power MH/s: 74.525
Block Time s: 15
I get 0.4190912262
as a result opposed to 2.10
value from online calculator mentioned above. I'm not entirely sure where my formula is wrong i.e. I calculate seconds needed to mine 1 block and then divide whole month by these seconds to find out how many blocks I can mine.
For simplicity assume all other costs like electricity etc.. are 0
Best Answer
Let
The chance of winning a single block is then:
This is the number you calculated. You simply have to multiply that by 5 (which is the number of ether one wins if one wins the block) to get the number you're looking for.