Hello Vishal,
the old rule was 2^n -2 for skipping the all zero subnet (no ip subnet-zero) and for avoiding to have the last subnet broadcast to looks like the same as the broadcast of the original major network.
The new rule that takes advantage of classless routing protocols that carry the subnet mask is instead 2^N and the first and the last subnets are now usable and not reserved
Hope to help
Giuseppe