How is the charge on an ion calculated ?

Atoms are electrically neutral. A positive ion (or cation) is formed when an atom loses one or more electrons. An electron carries one unit of negative charge. So, the number of units of positive charge only a cation is equal to the number of electrons lost by the concerned atom.