This example shows the cumulative payout of social security using a normalized base value. It can be used to determine the best time to start collecting social security.
Here are some things the graph tells us.
If you believe that social security will remain viable for your entire life and you expect to live past age 79, then it is better to start collecting social security as late as possible (age 70) because it maximizes your cumulative return.
If you believe that social security will remain viable for your entire life and you expect to die before age 75, then it is better to start collecting social security as early as possible (age 62) because it maximizes your cumulative return.
If you believe that social security will not remain viable after you are age 75 or, perhaps 79, then it is better to start collecting social security as early as possible (age 62) because it maximizes your cumulative return.
Run it like this.
git clone https://gist.github.com/f3fd81748b0bcb0a3b033b921e8ee85a.git ssa
cd ssa
pipenv install pylint matplotlib pyqt5
pipenv run ./ssa.py
Note that it assumes you are using a recent version of python3.
You can get console debug messages like this:
DEBUG=1 pipenv run ./ssa.py
This gist was tested on Ubuntu 22.04 and MacOS Ventura 13.1.