Molar mass of Ca(OCl)2 = 40 + (16 + 35.5)x2 = 143
% by mass of calcium in the compound =massofcalcuimmolarmassofcompound x 100%
% calcium = 40143×100
= 27.98% = 28%