Calculating the concentration of a mixture