With an neucleus, the charge is calculated by using the formula: number of protons x the charge of a single electron with an ion, the charge is calculated using the formula:number of extra charge x charge of a single electron
the mass of both an ion and a neuleus is calculated the same way.