Crypto mining valuation

When you mine the crypto how to determine the cost basis for it? If you mine on a daily basis do you need to use the market value on each particular day of the earned cyrpto and report it as a taxable income? I assume this is not applicable is the mining is done on a test platform but once it is moved to the production but the crypto is  not eligible for the training of the exchange, is it still considered to be a taxable income? IF so what would the evaluation basis could be used if the crypto is not traded at the exchanges yet but you can use it to buy services/goods? Thanks!