Calculation of concentration and molarity