I've been merge mining with litecoinpool for a year now and have quite a bit of data that I pull together in a Grafana dashboard. Recently, I've been trying to estimate my bottom line based on historical payouts, difficulty, market price, etc. I've been searching for the algorithm behind the litecoinpool calculator in an attempt to measure potential outputs over time. The values fluctuate fairly dramatically and thought it would be helpful for me to estimate payouts so that I can adapt to market changes. It'll help me manage the bottom line better.
My questions are:
- is that dumb (because of how drastic the values fluctuate)?
- if not, can anyone help me learn the backend math to calculate the profitability analysis?
I'd like to smooth that over time in Grafana. The API returns all the information (minus the input variables like estimated hash, power utilization, and power cost).
Any help with the algorithm?
It's pretty simple. The expected number of hashes over a period of time is average hashrate multiplied by time. You divide that by 65536 and you have the expected number of baseline shares. You then multiply by the price of a share (i.e., the PPS rate) and you get expected rewards in LTC. The formula for the PPS rate is in the FAQ on the website.
As for energy costs, it's even simpler, as energy is power (in kW) multiplied by time (in hours).
Thank you, pooler. One clarification..
The straight line estimate for expected rewards is: ("avg hashrate" * "time interval (in seconds)" / 65536) * "PPS rate"
The straight line estimate for power is: "kW used" * "time (in hours)" * "cost of power (in seconds)"
Prior to netting that out, isn't network difficulty a part of that equation? How do I take that into account?