The outermost shell of Calcium must have 8 electrons. Electronic configuration of calcium is = 2,8,8,2
Calcium has a tendency to release 2 electrons, gaining 6 electrons is more difficult task as it involves large amount of energy. So it’s valency is +2 where the + sign indicates that the electrons are lost from its outermost shell.