New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make altersentlastungsbetrag dependent on age
not on current date
#385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Thank you very much! I added two comments. Additional remarks:
- Please add your contribution to
CHANGES.rst
- The tests are not running through currently. Please have another look at that and make sure that they run through on your machine (let me know if you cannot fix the errors).
- It would be great if we had a few test cases that directly test
eink_st_altersfreib
. Probably intest_zu_verst_eink.py
. If I understand correctly, the changes you made should change taxable income for some subjects. (or maybe there are tests and that is why the tests are failing?)
I integrated your comments @ChristianZimpelmann! Remaining issue: Unfortunately, I don't understand sufficiently how these tests work. Maybe we could do a little zoom session, where you explain this to me and @m-pannier ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @LauraGergeleit is currently rewriting the test_zu_verst_eink
test cases and might need your changes for it, I propose the following:
- We merge this PR with
test_zu_verst_eink
set to be ignored by pytask (I just pushed a commit that does this). - After Laura is done, you add some test cases within Fix rtol in tests and associated bugs #392 that test the changes you just implemented here.
Is there anything else that is still open to do in this PR from your side? Otherwise, we should be ready to merge once the tests have been run through.
It looks really good! Thank you for the great work!
Codecov Report
@@ Coverage Diff @@
## main #385 +/- ##
==========================================
- Coverage 92.10% 91.10% -1.00%
==========================================
Files 76 76
Lines 3520 3541 +21
==========================================
- Hits 3242 3226 -16
- Misses 278 315 +37
Continue to review full report at Codecov.
|
What problem do you want to solve?
Closes #350
This pull request makes the parameters
altersentlastungsbetrag_max
andaltersentlastung_quote
dependent onage
and thus corrects the current modeling problems as specified in #350. We usegeburtsjahr
to control forage
(see here for an example table) and basically apply the solution that is currently used for the parameterbehinderten_pauschbetrag
.We introduce two different functions
eink_st_altersfreib_bis_2004
andeink_st_altersfreib_ab_2005
to take account of the policy change due to the Alterseinkünftegesetz which replace the single functioneink_st_altersfreib
.We assign individuals who were born prior to 1940 the values that apply to individuals born in 1940.
Todo
CHANGES.rst
.