The octet rule refers to the tendency of atoms to prefer to have eight electrons in the valence shell. When atoms have fewer than eight electrons, they tend to react and form more stable compounds.
16-18= -2 so it has a negative charge. Just subtract the electrons from the protons if you get a positive number it will have a positive charge and vice versa.