user10915: I am gathering some btc details from coinwarz api as follows
Bitcoin difficulty: 711697198174
Bitcoin reward: 12.5
My personal hash rate: 1.425 TH/s
I then try to calculate  amount of seconds it would take me to mine 1 coin, so
(711697198174 / 100) / 1.425 = 499436630297

The reason I am dividing difficulty by 100 above is so I can keep using my hashing power in TH/s
After this I try to calculate how many coins I can mine per day:
86400 / 499436630297 * 12.5 = 0.0002162436502

where 86400 is number of seconds in 24h. I get 0.0002162436502 coins per day, however every calculator I used online returns value similar to 0.00050348 coins per day.
I think this 0.00050348 is correct value, but I don't understand where my calculation is wrong

user5406: The problem is that you're not using the correct conversions:

The reason I am dividing difficulty by 100 above is so I can keep using my hashing power in TH/s

There are 1,000 GH to a TH.

difficulty / hashrate[GH/s] = time[s]

difficulty and hashrate stand in the following ratio:
difficulty = hashrate[H/s] / 7158388.055

Note that the formula uses hashes not gigahashes.

10915: <p>I am gathering some btc details from <a href="https://www.coinwarz.com/v1/api/documentation" rel="nofollow noreferrer">coinwarz api</a> as follows</p>

<p>Bitcoin difficulty: <code>711697198174</code></p>

<p>Bitcoin reward: <code>12.5</code></p>

<p>My personal hash rate: <code>1.425 TH/s</code></p>

<p>I then try to calculate  amount of seconds it would take me to mine 1 coin, so</p>

<pre><code>(711697198174 / 100) / 1.425 = 499436630297
</code></pre>

<p>The reason I am dividing difficulty by <code>100</code> above is so I can keep using my hashing power in TH/s</p>

<p>After this I try to calculate how many coins I can mine per day:</p>

<pre><code>86400 / 499436630297 * 12.5 = 0.0002162436502
</code></pre>

<p>where <code>86400</code> is number of seconds in 24h. I get <code>0.0002162436502</code> coins per day, however every calculator I used online returns value similar to <code>0.00050348</code> coins per day.</p>

<p>I think this <code>0.00050348</code> is correct value, but I don't understand where my calculation is wrong</p>
 5406: <p>The problem is that you're not using the correct conversions:</p>

<blockquote>
  <p>The reason I am dividing difficulty by <code>100</code> above is so I can keep using my hashing power in TH/s</p>
</blockquote>

<p>There are 1,000 GH to a TH.</p>

<blockquote>
  <p>difficulty / hashrate[GH/s] = time[s]</p>
</blockquote>

<p>difficulty and hashrate stand in the <a href="https://bitcoin.stackexchange.com/q/5556/5406">following ratio</a>:</p>

<pre><code>difficulty = hashrate[H/s] / 7158388.055
</code></pre>

<p>Note that the formula uses hashes not gigahashes.</p>
