It's quite unfortunate that lifespan is easy to measure, but quality of life is difficult. That's made science and modern medicine aim for the former, too often ignoring the latter.
There have been studies of this, and the figure usually quoted is that for the last eight years, quality of life tends to be problematic.