What the degree of unsaturation tells you and where it stops: it counts rings and π bonds together and can never say which, so two structures with the same number are not distinguished by 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: