If you know the molecular formula for a substance, you can calculate its degree of unsaturation ... which is the sum of the number of PI bonds and the number of rings.
The formula is DoU = C + 1 + N/2 X/2 H/2.
Check me out: http://www.chemistnate.com