Calcium and magnesium present in a water sample is determined, by giving the greatest color change as the end point.