Find the gap between the income you want and what is guaranteed, and the savings needed to close it.
Model and assumptions. The monthly gap is the income you want less Social Security, pension and other income, and is never below zero. The yearly gap is twelve times that. The savings needed are the yearly gap divided by the withdrawal rate, so a 4% rate asks for 25 times the yearly gap. The model treats all three sources as fixed in today's dollars, ignores taxes on withdrawals and does not test whether a given rate lasts for your retirement length.