Concentration measurement and calculation