How to calculate btc merit