Polyatomic ions charge is calculated by the oxidation numbers. You have to learn the basics, like hydrogen is +1 normally, oxygen -2 ,Halogenid -1, Elements 0, also bonding of two same elements., main elements max. Oxidation number is the group number, for example sulfur + 6.
For the example Sulfate it is SO42-
This can be calculated as -2 = 6(S) + 4* (-2)(O)
H2C=CH2 0 = 4 *(+1) + 2 (-2), hydrogen +1 , carbon -2