Calculating amount of reagent