Skip to content

Commit 6ff5618

Browse files
committed
fix: use correct groupings for wohngeld_abzüge_st_sozialv_m
1 parent 4a58c8e commit 6ff5618

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/_gettsim/transfers/wohngeld.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ def wohngeld_m_hh(
4141

4242

4343
def wohngeld_abzüge_st_sozialv_m(
44-
eink_st_y_tu: float,
44+
eink_st_y_sn: float,
4545
ges_rentenv_beitr_m: float,
4646
ges_krankenv_beitr_m: float,
4747
kind: bool,
4848
wohngeld_params: dict,
4949
) -> float:
5050
"""Calculate housing benefit subtractions on the individual level.
5151
52-
Note that eink_st_y_tu is used as an approximation for taxes on income (as mentioned
52+
Note that eink_st_y_sn is used as an approximation for taxes on income (as mentioned
5353
in § 16 WoGG Satz 1 Nr. 1).
5454
5555
Parameters
5656
----------
57-
eink_st_y_tu
58-
See :func:`eink_st_y_tu`.
57+
eink_st_y_sn
58+
See :func:`eink_st_y_sn`.
5959
ges_rentenv_beitr_m
6060
See :func:`ges_rentenv_beitr_m`.
6161
ges_krankenv_beitr_m
@@ -70,7 +70,7 @@ def wohngeld_abzüge_st_sozialv_m(
7070
7171
"""
7272
abzug_stufen = (
73-
(eink_st_y_tu > 0) + (ges_rentenv_beitr_m > 0) + (ges_krankenv_beitr_m > 0)
73+
(eink_st_y_sn > 0) + (ges_rentenv_beitr_m > 0) + (ges_krankenv_beitr_m > 0)
7474
)
7575
if kind:
7676
out = 0.0
@@ -90,7 +90,7 @@ def wohngeld_eink_vor_freib_m_ohne_elterngeld( # noqa: PLR0913
9090
eink_rente_zu_verst_m: float,
9191
kind_unterh_erhalt_m: float,
9292
unterhaltsvors_m: float,
93-
wohngeld_abzüge_st_sozialv_m: float,
93+
wohngeld_abzüge_st_sozialv_m_hh: float,
9494
) -> float:
9595
"""Sum gross incomes relevant for housing benefit calculation on individual level
9696
and deducting individual housing benefit subtractions.
@@ -136,7 +136,7 @@ def wohngeld_eink_vor_freib_m_ohne_elterngeld( # noqa: PLR0913
136136
)
137137

138138
eink_ind = einkommen + transfers + sonstig_eink_m
139-
out = (1 - wohngeld_abzüge_st_sozialv_m) * eink_ind
139+
out = (1 - wohngeld_abzüge_st_sozialv_m_hh) * eink_ind
140140
return out
141141

142142

@@ -152,7 +152,7 @@ def wohngeld_eink_vor_freib_m_mit_elterngeld( # noqa: PLR0913
152152
kind_unterh_erhalt_m: float,
153153
unterhaltsvors_m: float,
154154
elterngeld_anr_m: float,
155-
wohngeld_abzüge_st_sozialv_m: float,
155+
wohngeld_abzüge_st_sozialv_m_hh: float,
156156
) -> float:
157157
"""Sum gross incomes relevant for housing benefit calculation on individual level
158158
and deducting individual housing benefit subtractions.
@@ -201,7 +201,7 @@ def wohngeld_eink_vor_freib_m_mit_elterngeld( # noqa: PLR0913
201201
)
202202

203203
eink_ind = einkommen + transfers + sonstig_eink_m
204-
out = (1 - wohngeld_abzüge_st_sozialv_m) * eink_ind
204+
out = (1 - wohngeld_abzüge_st_sozialv_m_hh) * eink_ind
205205
return out
206206

207207

0 commit comments

Comments
 (0)