Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
efb5385
Add policy cases for the Grundrente income test (§ 97a SGB VI)
MImmesberger Oct 17, 2026
f5b543a
Base the Grundrente income test on the § 97a SGB VI income
MImmesberger Oct 18, 2026
b6d73de
Add the PR number to CHANGES.md
MImmesberger Oct 18, 2026
f6bb99d
Pin gettsim-personas to the branch of ttsim-dev/gettsim-personas#63
MImmesberger Oct 18, 2026
0537e3e
Take the Grundrente threshold Rentenwert from 1 January
MImmesberger Oct 18, 2026
0b52b25
Move the Grundrente policy cases to the _ehe income input
MImmesberger Oct 18, 2026
2ef7256
Rename the Grundrente income nodes and round the thresholds in their …
MImmesberger Oct 18, 2026
1f80150
Add the Grundrente threshold functions to the local-cast baseline
MImmesberger Oct 18, 2026
7273e55
Review.
MImmesberger Oct 18, 2026
613b8ac
Base the Grundrente policy cases on official calculations where avail…
MImmesberger Oct 18, 2026
1771413
Delte 2027 test case.
MImmesberger Oct 18, 2026
90f298c
Set the Grundrentenzuschlag in the simple example
MImmesberger Oct 18, 2026
017b7e2
Merge origin/main into grundrente-einkommen-zve
MImmesberger Nov 18, 2026
6bc82e5
Use the income of the vorvergangenes Kalenderjahr for the Grundrente
MImmesberger Nov 18, 2026
2bac7ca
Merge origin/main into grundrente-einkommen-zve
MImmesberger Nov 18, 2026
bd3f129
Supply the Progressionsvorbehalt inputs in the Grundrente notebook
MImmesberger Nov 18, 2026
c34732b
Shorten the Grundrente test file names
MImmesberger Nov 18, 2026
9b34422
Merge origin/main into grundrente-einkommen-zve
MImmesberger Nov 18, 2026
9701789
Supply the birth date in the Grundrente notebook
MImmesberger Nov 18, 2026
1e1df56
Relock gettsim-personas at the head of gettsim-personas#63
MImmesberger Nov 18, 2026
9e72485
Merge origin/main into grundrente-einkommen-zve
MImmesberger Nov 18, 2026
3481c35
Merge origin/main into grundrente-einkommen-zve
MImmesberger Nov 18, 2026
2d052a2
Pin gettsim-personas to main again
MImmesberger Nov 18, 2026
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
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ All releases are available on [Anaconda.org](https://anaconda.org/conda-forge/ge

## Unreleased

- {gh}`1246` Base the income test of the Grundrentenzuschlag on the § 97a Abs. 2 SGB VI
income (zu versteuerndes Einkommen, steuerfreier Teil of pensions, and capital income
under the Abgeltungsteuer) instead of gross receipts.

New input `sozialversicherung__rente__grundrente__einkommen_vorvorjahr_m_ehe` (the
couple's income of the vorvergangenes Kalenderjahr, § 97a Abs. 2 S. 2 SGB VI), which
replaces the old Grundrente income inputs. The target
`sozialversicherung__rente__grundrente__gesamteinnahmen_aus_renten_für_einkommensberechnung_im_folgejahr_m`
is replaced by
`sozialversicherung__rente__grundrente__einkommen_für_einkommensanrechnung_im_übernächsten_jahr_y`.
({ghuser}`MImmesberger`)

- {gh}`1246` Round the Grundrente income thresholds up to full euros and keep them fixed
for the calendar year, using the Rentenwert in force on 1 January (§ 97a Abs. 4 S. 1,
5 SGB VI). ({ghuser}`MImmesberger`)

- {gh}`1246` Exempt the Grundrentenzuschlag from income tax from 2021 (§ 3 Nr. 14a
EStG). Anyone who supplies `einnahmen__renten__gesetzliche_m` as data now also needs
`sozialversicherung__rente__grundrente__betrag_m` and
`sozialversicherung__rente__bezieht_altersrente`. ({ghuser}`MImmesberger`)

- {gh}`1246` Fix the date key of the 39.32 € Rentenwert from `2024-01-07` to
`2024-07-01` (see {gh}`1202`). This changes results that use the Rentenwert for policy
dates from 7 January to 30 June 2024 (37.60 € instead of 39.32 €).

- {gh}`1250` Split social insurance contributions between taxable and tax-free wage
(e.g. Aktivrente) when deducting Vorsorgeaufwendungen (§ 10 Abs. 2 EStG); fix the
order of capping in § 10 Abs. 3 EStG. New column
Expand Down
283 changes: 283 additions & 0 deletions docs/how_to_guides/calculating_grundrente.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# How to calculate the Grundrentenzuschlag\n",
"\n",
"The Grundrentenzuschlag (basic pension supplement) raises the statutory pensions of\n",
"people who paid contributions for at least 33 years at low earnings. It is reduced by\n",
"the pensioner's income (§ 97a SGB VI). This income is the sum of\n",
"\n",
"- the zu versteuerndes Einkommen (taxable income),\n",
"- the steuerfreier Teil (tax-free part) of pensions, and\n",
"- capital income taxed under the Abgeltungsteuer,\n",
"\n",
"taken as one twelfth per month.\n",
"\n",
"The Grundrentenzuschlag does not use current income but the income of the calendar year\n",
"before the previous one (vorvergangenes Kalenderjahr, § 97a Abs. 2 S. 2 SGB VI). For the\n",
"Zuschlag paid in 2026, this is the income of 2024. This income can be calculated via a\n",
"separate GETTSIM run as illustrated in the example below.\n",
"\n",
"### Overview\n",
"\n",
"The calculation involves two steps:\n",
"\n",
"1. Calculate the income relevant for the Grundrentenzuschlag in the year **before the\n",
" previous** year. Use the target \n",
" `(\"sozialversicherung\", \"rente\", \"grundrente\", \"einkommen_für_einkommensanrechnung_im_übernächsten_jahr_m_ehe\")` \n",
" with the policy environment of that year.\n",
"\n",
"2. Use the result as the input \n",
" `(\"sozialversicherung\", \"rente\", \"grundrente\", \"einkommen_vorvorjahr_m_ehe\")` \n",
" and calculate the Grundrentenzuschlag `(\"sozialversicherung\", \"rente\", \"grundrente\", \"betrag_m\")`\n",
" with the policy environment of the current year.\n",
"\n",
"> **Note**: GETTSIM simplifies the statute in several ways:\n",
">\n",
"> - If the tax office has no assessment for the year before the previous one, the\n",
"> statute uses the income of the year before that (§ 97a Abs. 2 S. 3 SGB VI). It is up\n",
"> to the user to pass the income of the right year.\n",
"> - If the tax office has no data on a person, the statute cuts gross pensions by fixed\n",
"> percentages instead (§ 97a Abs. 2 S. 4 SGB VI). GETTSIM does not model this\n",
"> fallback.\n",
"> - The tax-free part of Versorgungsbezüge (civil servant pensions) is not modelled\n",
"> ([#1247](https://github.com/ttsim-dev/gettsim/issues/1247)).\n",
"> - The steuerfreier Teil of pensions is the fixed euro amount set when the pension\n",
"> started (§ 22 Nr. 1 S. 3 Buchst. a Doppelbuchst. aa S. 4 EStG). GETTSIM approximates\n",
"> it as one minus the Besteuerungsanteil times the current pension, which overstates\n",
"> it for pensions that have been adjusted since they started.\n",
"> - For capital income under § 20 Abs. 1 Nr. 6 EStG, the statute counts one tenth of\n",
"> the yield for at most ten years. GETTSIM counts it in full\n",
"> ([#1248](https://github.com/ttsim-dev/gettsim/issues/1248)).\n",
"\n",
"## Example\n",
"\n",
"Consider a single pensioner, born in 1953, who has drawn her statutory pension since\n",
"2018. In 2024, she received a statutory pension of €1,250 and an occupational pension\n",
"(Betriebsrente) of €500 per month, plus €3,000 of capital income. She received no\n",
"Grundrentenzuschlag in 2024. We want her Grundrentenzuschlag in January 2026.\n",
"\n",
"### Step 1: Income in the year before the previous year"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"from gettsim import InputData, MainTarget, TTTargets, main"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, we compile the data needed to calculate her income tax for 2024."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input_data_2024 = {\n",
" \"alter\": np.array([71]),\n",
" \"alter_monate\": np.array([852]),\n",
" \"arbeitsstunden_w\": np.array([0]),\n",
" \"behinderungsgrad\": np.array([0]),\n",
" \"einkommensteuer\": {\n",
" \"abzüge\": {\n",
" \"beitrag_private_rentenversicherung_m\": np.array([0]),\n",
" \"kinderbetreuungskosten_m\": np.array([0]),\n",
" \"p_id_kinderbetreuungskostenträger\": np.array([-1]),\n",
" },\n",
" \"einkünfte\": {\n",
" \"aus_forst_und_landwirtschaft\": {\"betrag_y\": np.array([0])},\n",
" \"aus_gewerbebetrieb\": {\"betrag_y\": np.array([0])},\n",
" \"aus_nichtselbstständiger_arbeit\": {\n",
" \"tatsächliche_werbungskosten_y\": np.array([0]),\n",
" },\n",
" \"aus_selbstständiger_arbeit\": {\"betrag_y\": np.array([0])},\n",
" \"aus_vermietung_und_verpachtung\": {\"betrag_y\": np.array([0])},\n",
" \"ist_hauptberuflich_selbstständig\": np.array([False]),\n",
" \"sonstige\": {\n",
" \"alle_weiteren_y\": np.array([0]),\n",
" \"rente\": {\n",
" \"alter_beginn_leistungsbezug_sonstige_private_vorsorge\": np.array(\n",
" [65]\n",
" ),\n",
" },\n",
" },\n",
" },\n",
" \"gemeinsam_veranlagt\": np.array([False]),\n",
" },\n",
" \"einnahmen\": {\n",
" \"bruttolohn_m\": np.array([0]),\n",
" \"kapitalerträge_y\": np.array([3000]),\n",
" \"renten\": {\n",
" \"aus_berufsständischen_versicherungen_m\": np.array([0]),\n",
" \"basisrente_m\": np.array([0]),\n",
" \"betriebliche_altersvorsorge_m\": np.array([500]),\n",
" \"geförderte_private_vorsorge_m\": np.array([0]),\n",
" \"gesetzliche_m\": np.array([1250]),\n",
" \"sonstige_private_vorsorge_m\": np.array([0]),\n",
" },\n",
" \"zurückgezahlte_lohn_und_einkommensersatzleistungen_m\": np.array([0]),\n",
" },\n",
" \"elterngeld\": {\"betrag_m\": np.array([0.0])},\n",
" \"familie\": {\n",
" \"alleinerziehend\": np.array([False]),\n",
" \"p_id_ehepartner\": np.array([-1]),\n",
" \"p_id_elternteil_1\": np.array([-1]),\n",
" \"p_id_elternteil_2\": np.array([-1]),\n",
" },\n",
" \"geburtsjahr\": np.array([1953]),\n",
" \"geburtsmonat\": np.array([3]),\n",
" \"geburtstag\": np.array([15]),\n",
" \"kindergeld\": {\n",
" \"in_ausbildung\": np.array([False]),\n",
" \"p_id_empfänger\": np.array([-1]),\n",
" },\n",
" \"p_id\": np.array([0]),\n",
" \"sozialversicherung\": {\n",
" \"arbeitslosen\": {\n",
" \"betrag_m\": np.array([0.0]),\n",
" \"insolvenzgeld_m\": np.array([0]),\n",
" \"kurzarbeitergeld_m\": np.array([0]),\n",
" },\n",
" \"kranken\": {\n",
" \"beitrag\": {\"privat_versichert\": np.array([False])},\n",
" \"krankengeld_m\": np.array([0]),\n",
" \"mutterschaftsgeld_m\": np.array([0]),\n",
" },\n",
" \"pflege\": {\"beitrag\": {\"hat_kinder\": np.array([True])}},\n",
" \"rente\": {\n",
" \"altersrente\": {\"betrag_m\": np.array([1250.0])},\n",
" \"bezieht_altersrente\": np.array([True]),\n",
" \"grundrente\": {\"betrag_m\": np.array([0.0])},\n",
" \"jahr_renteneintritt\": np.array([2018]),\n",
" \"verzichtet_auf_versicherungsfreiheit_wegen_alters\": np.array([False]),\n",
" \"verzichtet_auf_versicherungsfreiheit_wegen_geringfügiger_beschäftigung\": np.array(\n",
" [False]\n",
" ),\n",
" },\n",
" \"unfall\": {\"verletztengeld_m\": np.array([0])},\n",
" },\n",
" \"wohnort_ost_hh\": np.array([False]),\n",
"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, we calculate the income relevant for the Grundrentenzuschlag in 2026, using the\n",
"policy environment of 2024."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"einkommen_2024 = main(\n",
" main_target=MainTarget.results.tree,\n",
" policy_date_str=\"2024-01-01\",\n",
" tt_targets=TTTargets.tree(\n",
" {\n",
" \"sozialversicherung\": {\n",
" \"rente\": {\n",
" \"grundrente\": {\n",
" \"einkommen_für_einkommensanrechnung_im_übernächsten_jahr_m_ehe\": None,\n",
" }\n",
" }\n",
" }\n",
" }\n",
" ),\n",
" input_data=InputData.tree(input_data_2024),\n",
" include_warn_nodes=False,\n",
")[\"sozialversicherung\"][\"rente\"][\"grundrente\"][\n",
" \"einkommen_für_einkommensanrechnung_im_übernächsten_jahr_m_ehe\"\n",
"]\n",
"einkommen_2024"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 2: Grundrentenzuschlag in the current year\n",
"\n",
"Now we calculate the Grundrentenzuschlag for January 2026 with the policy environment\n",
"of that date. Her pension record has 35 years (420 months) of Grundrentenzeiten, which\n",
"are also her Grundrentenbewertungszeiten, with 17.5 Entgeltpunkte (0.5 per year) in\n",
"total. We pass a Zugangsfaktor of 1 as data, so we need not supply her full insurance\n",
"history."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input_data_2026 = {\n",
" \"familie\": {\"p_id_ehepartner\": np.array([-1])},\n",
" \"p_id\": np.array([0]),\n",
" \"sozialversicherung\": {\n",
" \"rente\": {\n",
" \"altersrente\": {\"zugangsfaktor\": np.array([1.0])},\n",
" \"grundrente\": {\n",
" \"bewertungszeiten_monate\": np.array([420]),\n",
" \"einkommen_vorvorjahr_m_ehe\": einkommen_2024,\n",
" \"grundrentenzeiten_monate\": np.array([420]),\n",
" \"mean_entgeltpunkte\": np.array([17.5]),\n",
" },\n",
" },\n",
" },\n",
"}\n",
"\n",
"main(\n",
" main_target=MainTarget.results.tree,\n",
" policy_date_str=\"2026-01-01\",\n",
" tt_targets=TTTargets.tree(\n",
" {\n",
" \"sozialversicherung\": {\n",
" \"rente\": {\n",
" \"grundrente\": {\n",
" \"betrag_m\": None,\n",
" }\n",
" }\n",
" }\n",
" }\n",
" ),\n",
" input_data=InputData.tree(input_data_2026),\n",
" include_warn_nodes=False,\n",
")"
]
}
],
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
1 change: 1 addition & 0 deletions docs/how_to_guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ maxdepth: 1
modifications_of_policy_environments
inputs_from_prior_periods
calculating_elterngeld
calculating_grundrente
```
13 changes: 13 additions & 0 deletions docs/how_to_guides/inputs_from_prior_periods.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ lifetime earnings:
`neue_entgeltpunkte_y` to the previous year's `entgeltpunkte` to get the updated
lifetime total.

**Grundrente (Grundrentenzuschlag)**

The Grundrentenzuschlag is reduced by the income of the calendar year before the
previous one (§ 97a Abs. 2 S. 2 SGB VI):

- **Past input**:
`("sozialversicherung", "rente", "grundrente", "einkommen_vorvorjahr_m_ehe")`
- **Calculation target**:
`("sozialversicherung", "rente", "grundrente", "einkommen_für_einkommensanrechnung_im_übernächsten_jahr_m_ehe")`,
calculated with the policy environment of the year before the previous one

For a worked example, see the [Grundrente tutorial](calculating_grundrente.ipynb).

**Unemployment benefits (Arbeitslosengeld)**

Unemployment benefits are based on the income in the 12 months preceding the beginning
Expand Down
4 changes: 4 additions & 0 deletions docs/tutorials/simple_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,16 @@
" \"unfall\": {\"verletztengeld_m\": 0.0},\n",
" \"rente\": {\n",
" \"jahr_renteneintritt\": 2080,\n",
" \"bezieht_altersrente\": False,\n",
" \"altersrente\": {\n",
" \"betrag_m\": 0.0,\n",
" },\n",
" \"erwerbsminderung\": {\n",
" \"betrag_m\": 0.0,\n",
" },\n",
" \"grundrente\": {\n",
" \"betrag_m\": 0.0,\n",
" },\n",
" \"verzichtet_auf_versicherungsfreiheit_wegen_alters\": False,\n",
" \"verzichtet_auf_versicherungsfreiheit_wegen_geringfügiger_beschäftigung\": False,\n",
" },\n",
Expand Down
Loading
Loading