4 ms·
Grim, but neat! You might consider leveraging an actuarial table of life expectancy by age[0], rather than hardcoding it at 80, since you're already doing the n
by cscscscscsc 3y ago
Grim, but neat! You might consider leveraging an actuarial table of life expectancy by age[0], rather than hardcoding it at 80, since you're already doing the necessary age calculations.
[0]: https://www.ssa.gov/oact/STATS/table4c6.html https://www.ssa.gov/oact/STATS/table4c6.html
- safety1st 3y agoIt bears mentioning that if you're in the US, living until 80 is a pretty optimistic expectation - the average for men is 73 and the average for women is 79.