Thank you for your complete description .
Indeed I want to find a formula for estimating the production cost values and not the exact prices .
Because as you said very well , That's impossible ! So many factors for exact calculation is needed and no one can do it .
I just need to know the approximate base price of Bitcoin production cost .
In the paragraph you showed me the path .
I think I must use the total network difficulty , BTC hashrate , average power cost and a few other factors to design a general formula for this calculation . That is what I was searching for .
In that case, look here:
https://en.bitcoin.it/wiki/DifficultyD * 2**32 / 600
This is the formula to estimate the hashrate (in hashes/second) based on the difficulty.
At this moment
hashrate = 15958652328578 * 2^32 /600
So, the estimation of the networks hashrate is 114.236.483.065.794.593.641 hashes/second
That's 114.236.483 Th/s
Now, let's take a reasonably recent version of bitmain's antminer, the S9... Some will use a better asic, some will use the S9, some will use older hardware... But for this estimation, i'd guess that the "average" ASIC is about an S9... If the actual average ASIC is more recent than the S9, the total power draw will be lower than what i estimate, if the actual average ASIC is older than the S9, i'll underestimate the power draw.
Hashrate of the S9 = 14 Th/s, power consumption is 1375 Watt.
So, you'd need about 8.16 million S9's running to provide the current estimated hashrate.
This many antminers would draw 11.219.654.580 Watt (11.22 Gigawatt)
The daily power consumption would be ~270 Gwh
The estimated power price is something you have to figure out for yourself, cause this is where the math stops...
If you estimate most of the mining power to be located in countries with cheap power, you'd have to estimate a lower power price than the global average, otherwise a higher one... If you estimate most of the mining power to be located in low wage countries vs high wage countries... If you estimate most of the ASIC's running in a server room vs at home (with no extra shelves, ups's , network infrastructure, cooling, security,...)