Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions outdated_docs/how-to-guides/calculating_elterngeld.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"\n",
"In principle, one can compute Elterngeld in three steps:\n",
"1. Compute the average monthly gross income before birth in the data.\n",
"2. Call GETTSIM with the target `elterngeld__mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m` using the policy\n",
"2. Call GETTSIM with the target `elterngeld__mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m` using the policy\n",
" environment of the year **before** the child was born.\n",
"3. Call GETTSIM with the target `elterngeld__betrag_m` using the outcome of step 2 as the input\n",
" for `elterngeld__mean_nettoeinkommen_in_12_monaten_vor_geburt_m` and the policy environment of the year the\n",
Expand Down Expand Up @@ -113,7 +113,7 @@
"\n",
"GETTSIM provides an easy way to compute the relevant net wage\n",
"`elterngeld__mean_nettoeinkommen_in_12_monaten_vor_geburt_m` based on step 1 using the target\n",
"`elterngeld__mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m`.\n",
"`elterngeld__mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m`.\n",
"\n",
"We use the policy environment of January 1st of the year before the child was born (§2e\n",
"Abs. 1 S. 2 BEEG). Note that this is correct regardless of the point in time when the\n",
Expand All @@ -133,7 +133,7 @@
"net_wage_approximation = compute_taxes_and_transfers(\n",
" data=data_before_birth,\n",
" environment=environment_2023,\n",
" targets=[\"elterngeld__mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m\"],\n",
" targets=[\"elterngeld__mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m\"],\n",
")\n",
"\n",
"net_wage_approximation"
Expand Down Expand Up @@ -192,7 +192,7 @@
"# Add net wage approximation\n",
"data_after_birth[\"elterngeld__mean_nettoeinkommen_in_12_monaten_vor_geburt_m\"] = (\n",
" net_wage_approximation[\n",
" \"elterngeld__mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m\"\n",
" \"elterngeld__mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m\"\n",
" ]\n",
")"
]
Expand Down
2 changes: 1 addition & 1 deletion src/gettsim/germany/elterngeld/einkommen.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def einkommen_vorjahr_unter_bezugsgrenze_ohne_unterscheidung_single_paar(
start_date="2012-09-18",
rounding_spec=RoundingSpec(base=0.01, direction="down"),
)
def mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m(
def mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m(
einnahmen__bruttolohn_m: float,
lohnsteuer__betrag_m: float,
lohnsteuer__betrag_soli_m: float,
Expand Down
2 changes: 1 addition & 1 deletion src/gettsim/germany/elterngeld/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def mean_nettoeinkommen_in_12_monaten_vor_geburt_m() -> float:
"""Mean net wage in the 12 months before birth of youngest child.

To compute this value using GETTSIM set `('elterngeld',
'mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m')` as the TT target and
'mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m')` as the TT target and
use input data from the last 12 months before the birth of the youngest child.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ inputs:
- false
outputs:
elterngeld:
mean_nettoeinkommen_für_bemessungsgrundllage_nach_geburt_m:
mean_nettoeinkommen_für_bemessungsgrundlage_nach_geburt_m:
- 790.0
- 158.0
Loading