Ok, i understand that, but if i calculate with the default example in the calculator of 1 000 000 visitors and 4 minutes per session at 60% cpu load :
1 000 000 visits x 240 seconds x 20 h/s (arbitrary value, i don't know what is the average value of mining speed)
= 4 800 000 000 hashes solved
next, i use your formula : (solved_hashes)/(global_difficulty) * (block_reward) * 0.7
4 800 000 000 / 73598927024 * 5.5721 * 0.7 = 0.25 XMR
0.25 XMR * 295.5 (usd/xmr) = 75$
But in the calculator i got 936.28$ at this time.
I don't understand what i miss in my calculation, and why i've this gap between the results, can you enlighten me where is my error ?
1 000 000 visits x 240 seconds x 20 h/s (arbitrary value, i don't know what is the average value of mining speed)
= 4 800 000 000 hashes solved
next, i use your formula : (solved_hashes)/(global_difficulty) * (block_reward) * 0.7
4 800 000 000 / 73598927024 * 5.5721 * 0.7 = 0.25 XMR
0.25 XMR * 295.5 (usd/xmr) = 75$
But in the calculator i got 936.28$ at this time.
I don't understand what i miss in my calculation, and why i've this gap between the results, can you enlighten me where is my error ?
Did you try the script yet? Was the income close to what the calculator shows?