Step 3 of 10 of the walkthrough. A halogen caps one bond exactly as a hydrogen does, so it subtracts a half. Oxygen bridges two bonds and changes nothing at all. Benzotrifluoride C7H5F3 reads 7 − 4 + 1 = 4, which is the benzene ring and nothing else. Replace the three fluorines by hydrogens and the 4 does not move.
It opens on C7H5F3, with the calculator under it, so the arithmetic of this step is on screen while you read it.
A degree of unsaturation is rings plus pi bonds. Read it off a molecular formula, count it off a structure you draw, and compare the two: they part company whenever sulfur or phosphorus is drawn beyond the valence the formula assumes. The tool needs JavaScript; these are the pages it offers: