Bitcoin Forum

Bitcoin => Mining => Topic started by: flok on March 17, 2012, 01:46:26 PM



Title: calculating expected number of BTC for a mining rig
Post by: flok on March 17, 2012, 01:46:26 PM
Hi,

Is it possible to somehow calculate the expected number of BTC I would mine for a given hashrate?
I know that my cards do around do around 700MH/s.
http://keetweej.vanheusden.com/stats/bitcoin_hashrate.png


Title: Re: calculating expected number of BTC for a mining rig
Post by: organofcorti on March 17, 2012, 01:52:44 PM
average.daily.btc <- your.hashrate / 2^32 / current.difficulty * 50 * 86000


Title: Re: calculating expected number of BTC for a mining rig
Post by: Dyaheon on March 17, 2012, 02:39:13 PM
http://www.alloscomp.com/bitcoin/calculator.php


Title: Re: calculating expected number of BTC for a mining rig
Post by: rjk on March 17, 2012, 05:53:38 PM
http://www.alloscomp.com/bitcoin/calculator.php
That seems to be the "go-to" calculator, but I really like this one too: http://bitcoinma.appspot.com/


Title: Re: calculating expected number of BTC for a mining rig
Post by: PulsedMedia on March 18, 2012, 07:18:09 AM
http://tpbitcalc.appspot.com/

is my choice


Title: Re: calculating expected number of BTC for a mining rig
Post by: PulsedMedia on March 18, 2012, 09:13:06 PM
http://tpbitcalc.appspot.com/

is my choice

That’s a good one but it fails to include the pool fee so it’s a bit off for those people that pay a fee. 

Many pools don't charge a fee, and taking away the very tiny fee of those which has is trivial. You want to calculate based on HW potential, not for particular pool.


Title: Re: calculating expected number of BTC for a mining rig
Post by: organofcorti on March 19, 2012, 06:52:51 AM
Assuming no mining pool fees, you can use this:

Code:
#!/bin/bash
MHASHESPERSEC="$1"
HASHESPERSEC=`echo 'scale=2;' ${MHASHESPERSEC} '*1000000' | bc`
AVGTOWIN=`wget -q -O - http://blockexplorer.com/q/hashestowin`
AVGSECSTOWIN=`echo ${AVGTOWIN} '/' ${HASHESPERSEC} | bc -l`
AVGHOURSSTOWIN=`echo ${AVGSECSTOWIN} '/' 3600 | bc -l`
echo At $MHASHESPERSEC 'MegaHash/s', the expected BTC gain for 24h is: `echo 'scale=8;' '(50*24) / '${AVGHOURSSTOWIN} | bc -l`

Use it as follows:

Code:
bash ./pps.sh 7000
At [b]7000[/b] MegaHash/s, the expected BTC gain for 24h is: 4.69913750

If the op doesn't notice th extra '0' you snuck in there, he might get a bit excited about what he could earn ;)


Title: Re: calculating expected number of BTC for a mining rig
Post by: Ferroh on March 19, 2012, 04:29:25 PM
https://ferroh.com/calculator


Title: Re: calculating expected number of BTC for a mining rig
Post by: triplehelix on March 23, 2012, 02:40:28 AM
couple here:

https://en.bitcoin.it/wiki/Profitability_Calculator

don't know why, but i like the first one best.  could use updated with some from this thread.