Calculating maximum amount of product