determination of magnesium by edta titration calculations