Formula and charge of complex ion