The magnesium content of the drilling fluid filtrate can be calculated by subtracting the calcium ion content from the total hardness. This gives the magnesium content in terms of calcium that is converted to magnesium by multiplying the value by the ratio of atomic weights (24.3/40 = 0.6).
mg/L
1. Determine the total hardness as calcium, CCa+Mg, as described in Section 2.8.3.
2. Determine the calcium content, CCa, as described in 2.8.4.
The concentration of magnesium ion is equal to total hardness deducts calcium:

where CCa+Mg is the total hardness (see Section 2.8.3), expressed as calcium in milligrams per liter; CCa is the calcium concentration (see Section 2.8.4), expressed in milligrams per liter.