Atomic number of calcium atom is 20 so it has 20 electrons
Electronic configuration of calcium atom is- 1s2,2s22p6,3s23p6,4s2 Ca atom loses two electrons to form Ca2+ ion. These electrons are lost from outermost shell.
The electronic configuration of calcium ion (Ca2+) is- 1s2,2s22p6,3s23p6,4s0