Currently, statutory retirement ages are often implemented via piecewise linear functions. This implementation makes sense for monetary units, but not for retirement ages, especially in the presence of staggered implementation of higher statutory retirement ages. The new implementation should look something like the solution used for the Altersrente wg. Arbeitslosigkeit in #645
Note: Additionally, the current piecewise functions are not correct for pathways into retirement that were abolished. The current implementation uses the normal retirement age for cohorts that are not eligible for this pathway. This is not necessary because GETTSIM deals with this eligibility concerns elsewhere.
Bug description
Currently, statutory retirement ages are often implemented via piecewise linear functions. This implementation makes sense for monetary units, but not for retirement ages, especially in the presence of staggered implementation of higher statutory retirement ages. The new implementation should look something like the solution used for the Altersrente wg. Arbeitslosigkeit in #645
Note: Additionally, the current piecewise functions are not correct for pathways into retirement that were abolished. The current implementation uses the normal retirement age for cohorts that are not eligible for this pathway. This is not necessary because GETTSIM deals with this eligibility concerns elsewhere.