calculate coinbase fee in more correct way