new method to calculate hash rate