Since 4% of 25x is X, we get the inverse truism, that having a nest of 25x your yearly spending should last you through a 30 year retirement.
There are arguments all over the internet whether 25x is fine, or if 30x or 33x [your annual spending] is safer, but the principle is the same.