To determine the electrical charge of the atom, we can use the following formula:
\[ \text{Charge} = \text{Number of protons} - \text{Number of electrons} \]
Given that the atom has:
- 18 protons
- 22 electrons
We can calculate the charge as follows:
\[ \text{Charge} = 18 - 22 = -4 \]
Thus, the atom has an electrical charge of -4.
The correct answer is B. -4.