Formal charges were reviewed in Chapter 1 and can be assigned based on a simple mathematical approach that is usually taught in introductory chemistry courses.
However, there is a potentially more efficient and instinctive way to do it based on normal valance patterns for atoms and curly arrows that is very useful in organic chemistry.