Hardness is measured in terms of ppm of calcium carbonate.
1 mol of MgCl2≡ 1 mol of CaCO3
95 g of MgCl2≡100 g of CaCO3
1×10−3g of MgCl2≡10095×10−3g of CaCO3
1 mol of CaCl2≡ 1 mol of CaCO3
111 g of CaCl2≡100 g of CaCO3
1×10−3g of CaCl2≡100111×10−3g of CaCO3
103 g of H2O contains 100111×10−3g of CaCO3
So,
Taking density of water to be 1 gm/mL
975 gm of water has (10095+100111)×10−3 gm of CaCO3
So, 106 gm of water has ((10095+100111)×10−3×106975) gm = 2 ppm