In more detail
The same maths covers both directions: the future value of regular deposits, and the payment a lump sum can support. $500,000 paid out over 25 years at 5% gives $2,922.95 a month. Insurance companies also sell annuity contracts that pay for life.