Plan a monthly income from a lump sum and see whether the money lasts.
Each month: Balance = Balance × (1 + r/12) − Withdrawal
Maximum sustainable withdrawal that exhausts the corpus exactly at the end: W = P × i ÷ (1 − (1 + i)−n), i = r/12, n = months.