Check this out, I guess the explanation for the calculation of the infection rate is quite transparent: https://healthcentricadvisors.org/wp-content/uploads/2017/03/Cal_Inf_Rates.pdf
The recovery rate should be calculated similarly on the basis of the relevant information.