/** * Calculate how long a Systematic Withdrawal Plan (SWP) corpus will last. * * Simulates monthly withdrawals from a corpus while the remaining balance * continues to earn monthly compounded returns. * * @param corpus Initial retirement or investment corpus * @param withdrawalPerMonth Amount withdrawn every month * @param annualReturn Expected annual return rate (in %) * @returns Number of months the corpus will last, capped at 1000 months * * @example * // Withdraw 15000/month from 1000000 at 6% annual return * calculateSWP(1000000, 15000, 6); * // => 82 */ export declare function calculateSWP(corpus: number, withdrawalPerMonth: number, annualReturn: number): number;