When I mine bitcoins on a pool, I allow my rewards to accumulate on the pool until it reaches a certain threshold (1 BTC). Say it takes 10 days to to reach that amount. Then the pool pays out 1 BTC to my wallet say on date x. Therefore is the cost basis determined by the price of bitcoin on date x? Or do I have to calculate it based on the price of bitcoin * reward I get for each day?