Professor Francisco Gomes’s Faculty Research Lecture on saving for your twilight years highlighted the perils of retiring when you can’t afford to. Here’s how to make sure you can live comfortably in old age.