Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: Ben Walsh (beamer) on July 10, 2011, 04:02:26 PM



Title: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 10, 2011, 04:02:26 PM
Here's a better calculator for those mining/thinking of mining or purchasing/thinking of purchasing mining contracts ...

     http://bitcoindetailedcalculator.appspot.com

Rather than assume constant difficulty (as the http://www.alloscomp.com/bitcoin/calculator.php does) it adjusts for the current historic difficulty changes every 10 days for the number of days you request a report for.

Original thread - http://forum.bitcoin.org/index.php?topic=27550.0


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 10, 2011, 07:46:16 PM
Bump


Title: Re: Bitcoin Detailed Calculator
Post by: Bitcoin Swami on July 10, 2011, 07:53:21 PM
Bump

Thanks bud.


Title: Re: Bitcoin Detailed Calculator
Post by: Stephen Gornick on July 10, 2011, 10:24:35 PM
adjusts for the current historic difficulty changes every 10 days for the number of days you request a report for.

This is excellent!

One problem I'm experiencing though is that when I pick a longer number of days, e.g., 180 days, I get a div that Chrome won't function with very well.  I can't scroll up or down, for instance.



Title: Re: Bitcoin Detailed Calculator
Post by: geek-trader on July 10, 2011, 10:48:13 PM
adjusts for the current historic difficulty changes every 10 days for the number of days you request a report for.

This is excellent!

One problem I'm experiencing though is that when I pick a longer number of days, e.g., 180 days, I get a div that Chrome won't function with very well.  I can't scroll up or down, for instance.



Me, too.  Chrome on Mac


Title: Re: Bitcoin Detailed Calculator
Post by: giszmo on July 10, 2011, 11:38:38 PM
yes, scrolling is broken. you can scroll by marking the text and within a certain range by using the mouse wheel.

@OP: total crap, sorry. so it defaults to 32% per what? day? 10 days? 2016 blocks? the output is also rather useless. If I hit calculate for 180 days I am not particularly interested in day #111. reduce the output to 10 lines at max. with something like: 1st week you will stay above 0.02BTC/day, 1st month above 0.015BTC/day .... and in the end you will have 0.532BTC. (there is no point in giving more than 3 digits precision. Neither for difficulty nor for results as I doubt you will achieve more than 1.5 digits precision at predicting the network growth rate.


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 17, 2011, 05:09:25 PM
Updated to provide an average difficulty change value which is regularly (it is actually every minute because I want to stress Google App Engine a little) calculated from all previous difficulties.

Also ...

Changed the interface to remove the scrolling problem.

Added graph - how useful are these ?

Added additional explanation text.

I am happy with the precision and will actually be increasing it as time progresses - I reckon my prediction is quite a bit better than giszmo thinks.


Keep the feedback coming all is useful, even the badly phrased stuff ;O)



Title: Re: Bitcoin Detailed Calculator
Post by: geek-trader on July 17, 2011, 07:11:34 PM
Much better than before.  Nice work.

However, The next predicted difficulty is only 1.64M

I understand how you've calculated, but it would be cool if we could enter a difficulty % ourselves.

[edit]  I'm blind. Its already there


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 17, 2011, 07:51:46 PM
Updated to provide regularly updated exchange rate and additional calculations of total USD return, electricity usage, electricity cost, total profit ...


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 21, 2011, 07:26:06 PM
Bump and request for feedback - either here or via bitcoindeveloperleague+bitcoindetailedcalculator@gmail.com

Really impressed with the usage this is getting, hope you are all finding it useful.

Should have some free time this weekend to implement some suggestions.




Title: Re: Bitcoin Detailed Calculator
Post by: dserrano5 on July 21, 2011, 08:23:53 PM
You may want to append a semicolon after the &nbsp's ;).


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 21, 2011, 08:59:57 PM
Cheers.

Forgot that had a semicolon too - seems my versions of both Firefox and Chrome tolerate it not being there.

You may want to append a semicolon after the &nbsp's ;).


Title: Re: Bitcoin Detailed Calculator
Post by: gnaget on July 21, 2011, 09:14:42 PM
Why would you have the difficulty increase, but not have a corresponding price increase? 

I would recommend you move away from the difficulty increase, and instead go to a resistance point on the price/difficulty ratio..  Take a look at this thread, for details:
http://forum.bitcoin.org/index.php?topic=7427.80

I have written in there a bit about my take on it.  The ratio defines the profitability of mining, and if it drops too low, then miners will bail out, due to lack of profits.  Historically, the lowest the ratio has been is .8, which is where it is at now, and hopefully that is the real bottom.

Good job on the calculator.  I also go for more detail :)


Title: Re: Bitcoin Detailed Calculator
Post by: KaptainBlaZzed on July 21, 2011, 10:43:24 PM
why do you increase the difficulty every 10 days, it should be every 14 days. ???


Title: Re: Bitcoin Detailed Calculator
Post by: Sukrim on July 21, 2011, 11:13:52 PM
why do you increase the difficulty every 10 days, it should be every 14 days. ???
It should be every 2016 blocks, how ever long that takes... ;)


Title: Re: Bitcoin Detailed Calculator
Post by: DamienBlack on July 22, 2011, 08:33:01 AM
Awesome. Thanks.


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 22, 2011, 09:39:18 AM
I based on this https://forum.bitcoin.org/index.php?topic=18485.0 and given the calculator is working on days ...

I will re-adjust over the coming months.

As ever this stuff is only ever going to be an estimate and I would far rather be pessimistic than give users high expectations.

why do you increase the difficulty every 10 days, it should be every 14 days. ???
It should be every 2016 blocks, how ever long that takes... ;)


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 31, 2011, 08:40:57 PM
Bump


Title: Re: Bitcoin Detailed Calculator
Post by: pokwer on July 31, 2011, 08:49:40 PM
Sooo, in a year the difficulty will be 62 billion??  That is quite high!


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on July 31, 2011, 08:58:58 PM
Absolutely. As stated that is a calculation based on all previous difficulty changes.

You might find this useful - http://www.google.com/ig/directory?url=pastehtml.com/view/b1cx89lyr.html

As you can see, only the last 3 difficulty changes are significantly statistically different from the historical average.

I might well add a drop down next to difficulty change textbox, covering the options from the gadget, if there is sufficient demand for it.

Sooo, in a year the difficulty will be 62 billion??  That is quite high!


Title: Re: Bitcoin Detailed Calculator
Post by: pokwer on July 31, 2011, 09:15:56 PM
I understand the formula, just not sure it's realistic to project the difficulty going that high unless you count on amazing new mining hardware coming to market and/or a massive increase in BTC value.  Even at $100/BTC a 1.2Gh/s rig starts costing more in electricity than it mines in less than 130 days.


Title: Re: Bitcoin Detailed Calculator
Post by: Ben Walsh (beamer) on February 19, 2012, 04:40:11 PM
BUMP

I have update the URL I am using for the current difficulty and the way the JSON for exchange rate is parsed - suitable values should now be provided by default.

Unfortunately, the replacement provided by blockchain.info for the blockexplorer q API has no nethash method so the functionality utilising that has been discontinued for the time being. If someone knows of a suitable replacement for that URL, let me know and I will add it back.


Title: Re: Bitcoin Detailed Calculator
Post by: danhu on November 14, 2013, 09:32:17 PM
 ;D  a more complex bitcoin profitability calculator here
using average of the last 15 difficulty increments . based on past difficulty developments to predict future difficulty . automatic adjust when difficulty adjust .

http://www.vnbitcoin.org/bitcoincalculator.php