The Valence Calculator has 3 functionality:
The functionality of the Valence Calculator is focused mainly on the organic compounds, although the inorganic compounds not containing metallic atoms are also supported.
General rules for aromatic compounds (in order of priority):
Given the form X=Y, where X is member of an aromatic ring while Y is not, e.g. C=O, C=N, C=S, C=P, N=O and P=O. Non ring double bond has so-called "single bond charge separated" mesomer form. Then the non-ring hetero atom, Y, gets negative charge and the ring member atom, X, gets positive and therefore they act as charged atoms described above.
Ambiguous (in implicit H) aromatic ring cases: