iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
56 stars 33 forks source link

Add earnings test for pension benefits #788

Closed MImmesberger closed 2 months ago

MImmesberger commented 3 months ago

What problem do you want to solve?

Until 2022, there was an earnings test for early retirees.

This only applies for Vollrenten, we didn't implement Teilrenten yet.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.88%. Comparing base (ffbccf3) to head (dc1793b). Report is 2 commits behind head on main.

Files Patch % Lines
src/_gettsim/shared.py 0.00% 1 Missing :warning:
src/_gettsim/transfers/unterhaltsvors.py 87.50% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #788 +/- ## ========================================== + Coverage 89.69% 89.88% +0.18% ========================================== Files 53 53 Lines 3796 3826 +30 ========================================== + Hits 3405 3439 +34 + Misses 391 387 -4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

MImmesberger commented 3 months ago

While working on the comments I realized that the rule I implemented was partly introduced in 2017. Before that, there was a hard Hinzuverdienstgrenze above which pension benefits were set to 0. I'll implement the pre-2017 rule as well.

MImmesberger commented 3 months ago

Done!