<jupyter_start><jupyter_text>https://www.aniccaresearch.tech/blog/the-alchemy-of-hashpower-part-iD = C / [P x S/H x (m+n) x 6 x 24 - k x S x r x 24]<jupyter_code># Calculating days to break even for one S19j Pro 
capex       = 5_500 * u.USD
opex        = 0.1   * u.USD / u.kWh
asset_price = get_latest_price() * u.USD / u.BTC

miner_hashrate   = 96 * u.TH / u.second  
network_hashrate = get_latest_hashrate() * u.TH / u.seconds
miner_efficency  = 29.5 * u.J / u.TH 
hashrate_share   = miner_hashrate.to('hashes / second') / network_hashrate.to('hashes / second')

subsidy      = 6.25 * u.BTC / u.BTC_block
tx_fees      = get_latest_tx_fees() * u.BTC / u.BTC_block
block_reward = subsidy + tx_fees
blocks       = 144 * u.BTC_block / u.day

profits    = asset_price * hashrate_share * block_reward * blocks
losses     = miner_efficency.to('kWh / terahashes') * miner_hashrate.to('terahashes / day') * opex 
break_even = capex / (profits - losses)

print(f'{break_even} to break even with one S19j Pro with Income {profits} and Electricity Costs {losses}')<jupyter_output>208.58 day to break even with one S19j Pro with Income 33.17 USD / day and Electricity Costs 6.80 USD / day
{'fraction_non_alphanumeric': 0.11639762107051826, 'fraction_numerical': 0.033984706881903144, 'mean_word_length': 3.237410071942446, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '153540', 'license': 'Unlicense', 'n_tokens_mistral': 501, 'n_tokens_neox': 464, 'n_words': 119, 'path': 'data/gettingnetwork.ipynb', 'repo_name': 'keblek/goldshell-profits', 'size': '1177'}