I was wondering if any of you could help me in making my own mining calculator. I know there are many good web apps out there, but I would like to make one myself.
What I don't understand is how to calculate the statistical outcome, knowing a given hardware's hashrate per second and the difficulty level.
Do you know what formula should I use?