# Calculating the buy price for Bitcoin based on the given basket amount and Bitcoin amount total_basket_amount_usd = 1181310.36 # Total basket amount in USD total_basket_amount_btc = 22.79 # Total basket amount in Bitcoin # Calculate the buy price for one Bitcoin in USD buy_price_per_btc = total_basket_amount_usd / total_basket_amount_btc # Number of shares in the basket total_shares = 40000 # Calculate the Bitcoin amount per share in satoshis (1 Bitcoin = 100,000,000 satoshis) btc_per_share = (total_basket_amount_btc / total_shares) * 100000000 # Convert Bitcoin to satoshis buy_price_per_btc, btc_per_share Result (51834.59236507241, 56974.99999999999)