Calculation of product quantities