Calculation of production rate