Skip to content

Base the Grundrente income test on the § 97a SGB VI income - #1246

Merged
MImmesberger merged 23 commits into
mainfrom
grundrente-einkommen-zve
Nov 26, 2026
Merged

MImmesberger merged 23 commits into
mainfrom
grundrente-einkommen-zve

Conversation

@MImmesberger

@MImmesberger MImmesberger commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

The Grundrente income test summed gross receipts. § 97a Abs. 2 S. 1 SGB VI counts the zu versteuerndes Einkommen, plus the steuerfreier Teil of pensions, plus Abgeltungsteuer capital income. Taking gross receipts overstated the income by roughly the Vorsorgeaufwendungen, about 140 €/month less Zuschlag for a single pensioner with a 1,800 € pension.

Approach. The law uses the income of the vorvergangenes Kalenderjahr (§ 97a Abs. 2 S. 2 SGB VI; the year before that if no tax assessment exists, S. 3), so it can't be computed in the same run. It is now one input at the couple level, grundrente__einkommen_vorvorjahr_m_ehe. A run for that earlier year produces it through the per-person target grundrente__einkommen_für_einkommensanrechnung_im_übernächsten_jahr_y, summed over the spouses (…_m_ehe). This is the same two-run pattern as Elterngeld, and a new how-to notebook shows it.

Also fixed:

Worth a look:

Closes #919.

Follow-ups: ttsim-dev/gettsim-personas#63, ttsim-dev/soep-preparation#107.

Merge order. ttsim-dev/gettsim-personas#63 needs this PR (its new persona inputs are unnecessary on gettsim main) and this PR's docs need it, so: merge it while it is pinned to this branch, re-pin gettsim-personas here to main and relock, merge this PR, then point gettsim-personas back at gettsim main.

MImmesberger and others added 3 commits October 17, 2026 21:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the gross-receipt inputs by one input holding the § 97a Abs. 2 income,
computed by a target in a run for the previous year. Round the thresholds up
and fix them per calendar year, exempt the Zuschlag from income tax (§ 3 Nr.
14a EStG), correct the date key of the July 2024 Rentenwert, and add a how-to
notebook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

MImmesberger and others added 2 commits October 18, 2026 13:24
Revert to main once that PR has been merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derive rentenwert_für_einkommensgrenzen_m from the Rentenwert in force on
1 January (add_jahresanfang) instead of copying its values per year.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MImmesberger and others added 7 commits October 18, 2026 14:48
The input becomes einkommen_vorjahr_m_ehe (the couple's sum, for both spouses)
and the previous-year target becomes einkommen_im_folgejahr_m.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…own functions

- input einkommen_vorjahr_m_ehe (couple level); target einkommen_im_folgejahr_y
  (per person, _sn amounts split by anzahl_personen_sn)
- renten_aus_basisversorgung_m and steuerpflichtiger_anteil_der_renteneinnahmen_m
  replace einnahmen_mit_besteuerungsanteil_m
- untere_/obere_einkommensgrenze_m with RoundingSpec instead of ceil

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able

Cases that reproduce a published calculation cite its exact location; all
others are marked as regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Income tax subtracts the tax-free Zuschlag from the pension, so the example
needs bezieht_altersrente and grundrente__betrag_m.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

@hmgaudecker hmgaudecker left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict

Request changes (small). The transcription of § 97a Abs. 4 (factors 36,56 / 46,78 / 57,03 / 67,27, 60 % / 100 % steps, rounding the thresholds up to full euros, thresholds fixed from 1 January) matches the statute, and every expected value I recomputed reproduces. Two things should be fixed before merge: the new input and its docs say the income is that of the previous calendar year, whereas § 97a Abs. 2 S. 2 says vorvergangenes Kalenderjahr, and pyproject.toml/pixi.lock are pinned to a feature branch of gettsim-personas.

Statute text used throughout: § 97a SGB VI as fetched from https://www.gesetze-im-internet.de/sgb_6/__97a.html on 2026-11-16. Per the buzer.de synopses (https://www.buzer.de/gesetz/886/al210247-0.htm, https://www.buzer.de/gesetz/886/al233113-0.htm), the amendments of 01.01.2025 and 24.12.2025 changed only Abs. 6; Abs. 1–5 read the same since 01.01.2021, so one set of parameters from 2021-01-01 is correct.

Blocking findings

1. Reference year: the statute says t−2, the input name and docs say t−1

Where:

  • src/gettsim/germany/sozialversicherung/rente/grundrente/inputs.py:24-33 (einkommen_vorjahr_m_ehe, "in the previous calendar year")
  • src/gettsim/germany/sozialversicherung/rente/grundrente/grundrente.py:335-345 (einkommen_im_folgejahr_y, "in the following calendar year")
  • docs/how_to_guides/calculating_grundrente.ipynb lines 27-30, 37-41, 50 (two-step recipe with "the policy environment of the previous year"; income of 2025 for the Zuschlag of January 2026)
  • docs/how_to_guides/inputs_from_prior_periods.md:65-71
  • CHANGES.md:18 ff.

Statute (verified, URL above), § 97a Abs. 2 S. 2–3 SGB VI:

"Als Einkommen nach Satz 1 Nummer 1 und 2 sind grundsätzlich die [...] bei den Finanzbehörden jeweils bis zum 30. September für das vorvergangene Kalenderjahr vorliegenden Festsetzungsdaten zugrunde zu legen. Liegen für das vorvergangene Kalenderjahr keine Festsetzungsdaten nach Satz 1 Nummer 1 vor, sind die Festsetzungsdaten nach Satz 1 Nummer 1 und 2 des vorvorvergangenen Kalenderjahres maßgeblich."

together with Abs. 5 S. 2 ("Einkommensänderungen, die [...] bis zum 31. Oktober vorliegen, sind vom darauffolgenden 1. Januar an zu berücksichtigen"). The DRV examples the PR's own tests cite work the same way (GRA Beispiel 4 and 10 use income of 2023; Beispiel 5: "im vorvergangenen Kalenderjahr (2024)" for a pension starting 01.03.2026; https://rvrecht.deutsche-rentenversicherung.de/SharedDocs/rvRecht/01_GRA_SGB/06_SGB_VI/pp_0076_100/gra_sgb006_p_0097a.html).

So for the Zuschlag paid in 2026 the default income year is 2024, not 2025. The PR description lists "the t − 2 / t − 3 reference year of DRV practice" under "not modelled", but this is the text of the statute, not administrative practice. The code on main at least carried _vorvorjahr_ in three of five input names and explained the lag in the einkommen_m docstring; this PR removes that explanation and names everything vorjahr / folgejahr.

The computation itself is year-agnostic (the user can feed it income of any year), so this is a naming and documentation defect, but one that makes a user who follows the how-to compute the wrong thing.

Suggested fix:

  • Rename the input to einkommen_vorvorjahr_m_ehe and rename the target einkommen_im_folgejahr_y so that it no longer says "following year".
  • State in both docstrings: "§ 97a Abs. 2 S. 2 SGB VI: income of the vorvergangenes Kalenderjahr (t−2); t−3 if no tax assessment for t−2 exists (S. 3)".
  • In the notebook, run step 1 with policy_date_str="2024-01-01" and 2024 data for a January 2026 Zuschlag, and list the t−3 fallback under "GETTSIM simplifies the statute".

2. gettsim-personas is pinned to a feature branch

pyproject.toml:115 and pyproject.toml:162 set branch = "grundrente-einkommen" (and pixi.lock follows). The PR description acknowledges this ("revert the pin to main once #63 is merged"). It has to be reverted and re-locked before this PR is merged, otherwise main depends on a branch that disappears when ttsim-dev/gettsim-personas#63 is merged. Merge order: personas #63 first, then re-pin to main, pixi lock, then this PR.

Non-blocking findings and questions

  1. CHANGES.md:18 is incomplete. The entry mentions the income definition and the renamed nodes. It omits three user-visible changes that the PR description lists:

    • The Grundrentenzuschlag is tax-free from 2021 (§ 3 Nr. 14a EStG).
    • The date key of the 39.32 € Rentenwert moved from 2024-01-07 to 2024-07-01 (rentenformel.yaml:226). This changes every result that uses rentenwert_m for policy dates 7 January to 30 June 2024 (37.60 instead of 39.32). The fix is right ("Der aktuelle Rentenwert beträgt ab dem 1. Juli 2024 39,32 Euro.", https://www.gesetze-im-internet.de/rwbestv_2024/__1.html), but it deserves its own line.
    • Thresholds are rounded up to full euros and use the Rentenwert of 1 January.
  2. rente.py:108-133, subtracting the Zuschlag from a pension supplied as data. renten_aus_basisversorgung_m_ohne_grundrentenzuschlag computes einnahmen__renten__gesetzliche_m − grundrente__betrag_m. If a user supplies an observed gesetzliche_m but lets GETTSIM compute grundrente__betrag_m (or vice versa), the two need not be consistent and the difference can be too small or negative, silently. Is there a reason not to guard this (max(..., 0.0)) or to document in the docstring that gesetzliche_m must contain the Zuschlag being subtracted? Also note that § 3 Nr. 14a EStG covers the Zuschlag in any "Rente aus der gesetzlichen Rentenversicherung", so Erwerbsminderungsrenten too; GETTSIM models the Zuschlag only for Altersrenten, which is fine but worth one sentence.

  3. grundrente.py:125, reference for the upper threshold. "Reference: § 97a Abs. 4 S. 2, 4 SGB VI" should be "S. 1–4" or at least "S. 1, 3, 4": the rounding is S. 1, the 46,78-fache is in S. 2 and S. 3, the couple factor in S. 4. Likewise grundrente.py:89 ("S. 1, 4") omits S. 2, which holds the 36,56-fache.

  4. grundrente.py:156-161, the West-value justification. The docstring says BT-Drs. 19/18473 "states the 2021 thresholds as multiples of the West value". The Drucksache (p. 42, https://dserver.bundestag.de/btd/19/184/1918473.pdf) has a placeholder for the Rentenwert ("Unter Berücksichtigung des aktuellen Rentenwertes von XX,XX Euro [...] ergeben sich – auf einen vollen Eurobetrag aufgerundete – Beträge für Alleinstehende in Höhe von 1 250 Euro und 1 600 Euro und für Ehegatten oder Lebenspartner in Höhe von 1 950 Euro und 2 300 Euro."). That these equal the factors times 34.19 (West) is an inference, a correct one: 36.56 × 33.23 (Ost) = 1214.89 would give 1215. The same page has a direct statement that is better to quote: "Die jeweils maßgebenden Beträge gelten einheitlich für Berechtigte im gesamten Bundesgebiet." The GRA quote in the docstring is verbatim correct.

  5. Steuerfreier Teil der Rente is approximated (grundrente.py:364-367). § 97a Abs. 2 S. 1 Nr. 2 refers to "der steuerfreie Teil von Renten nach § 22 Nummer 1 Satz 3 Buchstabe a Doppelbuchstabe aa Satz 4" EStG, i.e. the fixed euro amount set at the start of the pension. The code uses (1 − Besteuerungsanteil) × current pension, which is GETTSIM's existing simplification for income tax and overstates the tax-free part for pensions that have been adjusted since they started. Not introduced here, but it now feeds the Grundrente income; please add it to the notebook's "GETTSIM simplifies the statute" list, together with the 1/10 rule for § 20 Abs. 1 Nr. 6 EStG (#1248) that the PR description already names.

  6. Question, negative zvE (2024-07-01/einkommen_für_folgejahr_negatives_zve.yaml). The test fixes that a zvE of −1,200 € offsets the tax-free pension share (result 100 €/month instead of 200). Neither § 97a nor the GRA says anything on negative amounts (the GRA only says that a transmitted income of 0,00 EUR is used as is; the strings "negativ" and "Verlust" do not occur in the GRA page, counted with a case-insensitive search). GETTSIM's own gesamteinkommen_y_sn is floored at 0, so the case is reachable only when zvE is supplied as data. Is offsetting intended, and is there a source? The same question applies to 2026-03-01/ehegatte_mit_negativem_einkommen.yaml (its name suggests a negative component, the inputs only show the couple total of 2,500).

  7. Married test, living apart or abroad. untere_einkommensgrenze_m / obere_einkommensgrenze_m use the couple factors whenever anzahl_personen_ehe > 1. This follows the GRA (quotes verified, see table), although the statute's wording in Abs. 4 S. 4 is "Ist neben dem Einkommen des Berechtigten auch Einkommen seines Ehegatten zu berücksichtigen". Fine as is; the docstrings could cite the GRA for it since the statute alone does not settle it.

  8. Pre-existing, not touched by this PR: grundrente.py:248 has reference="§76g SGB VI Abs. 4 Nr. 4". § 76g Abs. 4 has no Nummern; the rounding rule is in Satz 4 ("das Ergebnis ist auf vier Dezimalstellen zu runden", https://www.gesetze-im-internet.de/sgb_6/__76g.html). Should read "§ 76g Abs. 4 S. 4 SGB VI". The PR itself adds no § 76g reference.

  9. PR description wording. "the t − 2 / t − 3 reference year of DRV practice" should read "of § 97a Abs. 2 S. 2, 3 SGB VI" (see blocking finding 1).

Law references checked

Reference as written in the PR Where (path:line at head) Source Matches? Note
§ 97a Abs. 2 SGB VI: zvE, steuerfreier Teil of pensions, Abgeltungsteuer capital income CHANGES.md:18; grundrente.py:355 (Abs. 2 S. 1) gesetze-im-internet.de/sgb_6/__97a.html yes "1. das zu versteuernde Einkommen nach § 2 Absatz 5 [EStG], 2. der steuerfreie Teil von Renten nach § 22 Nummer 1 Satz 3 Buchstabe a Doppelbuchstabe aa Satz 4 [EStG] sowie der [...] steuerfreie Betrag von Versorgungsbezügen und 3. die versteuerten Einkünfte aus Kapitalvermögen nach § 20 [EStG], soweit diese nicht bereits in dem Einkommen nach Nummer 1 enthalten sind". Versorgungsbezüge not modelled (declared, #1247).
"in the previous calendar year" inputs.py:29, inputs.py:31; notebook l. 27-30 same, Abs. 2 S. 2 no Statute: "für das vorvergangene Kalenderjahr". Blocking finding 1.
§ 97a Abs. 1, Abs. 4 S. 1-4 SGB VI grundrente.py:50 same yes Abs. 1: "wird Einkommen des Berechtigten und seines Ehegatten angerechnet". 60 % between the thresholds, full excess above.
Rounding up to full euro, § 97a Abs. 4 S. 1 grundrente.py:73, :109 same yes "jeweils auf einen vollen Eurobetrag aufgerundeten Beträge". Confirmed by BT-Drs. p. 42: 46.78 × 34.19 = 1599.41 is given as 1 600.
§ 97a Abs. 4 S. 1, 4 SGB VI (lower threshold) grundrente.py:89 same yes, incomplete 36,56 is in S. 2.
§ 97a Abs. 4 S. 2, 4 SGB VI (upper threshold) grundrente.py:125 same no (imprecise) Should include S. 1 (rounding) and S. 3.
§ 97a Abs. 4 S. 5 i.V.m. Abs. 5 S. 2 SGB VI (thresholds change on 1 January) grundrente.py:163, :183 same yes S. 5: "Änderungen der Höhe der Beträge nach den Sätzen 2 bis 4 werden mit Beginn des Kalendermonats wirksam, zu dessen Beginn Einkommensänderungen nach Absatz 5 zu berücksichtigen sind." GRA: "Die Änderungen werden allerdings erst zum darauffolgenden 01.01. wirksam (§ 97a Abs. 4 S. 5 in Verbindung mit Abs. 5 SGB VI)."
§ 97a Abs. 4 S. 2, 3: 36.56 / 46.78, 0.6 / 1.0 einkommen.yaml:8,13,22,23,56,61,69,70 same yes "das 36,56fache [...] werden 60 vom Hundert angerechnet, solange [...] nicht mehr als das 46,78fache"; S. 3 "in voller Höhe".
§ 97a Abs. 4 S. 4: 57.03 / 67.27 einkommen.yaml:32,37,46,47 same yes "das 57,03fache [...] das 67,27fache".
Art. 1 Nr. 6 G. v. 12.08.2020 BGBl. I S. 1879 (Grundrentengesetz), start 2021-01-01 einkommen.yaml:25,49,72 buzer.de/1_Grundrente_Gesetz.htm; buzer.de/gesetz/886/al119556-0.htm yes "6. Nach § 97 wird folgender § 97a eingefügt"; Artikel 1 "ändert mWv. 1. Januar 2021".
§ 3 Nr. 14a EStG rente.py:120 gesetze-im-internet.de/estg/__3.html yes "der Anteil der Rente aus der gesetzlichen Rentenversicherung, der auf Grund des Zuschlags an Entgeltpunkten für langjährige Versicherung nach dem Sechsten Buch Sozialgesetzbuch geleistet wird".
Art. 3 G. v. 16.12.2022 BGBl. I S. 2294, applicable from VZ 2021 rente.py:121 gesetze-im-internet.de/estg/__52.html (Abs. 4 S. 5) yes "§ 3 Nummer 14a in der Fassung des Artikels 3 des Gesetzes vom 16. Dezember 2022 (BGBl. I S. 2294) ist erstmals für den Veranlagungszeitraum 2021 anzuwenden." start_date="2021-01-01" matches.
§ 22 Nr. 1 Satz 3 Buchstabe a Doppelbuchstabe aa EStG rente.py:76, :94, :120 not fetched not verified Only indirectly supported: § 97a Abs. 2 S. 1 Nr. 2 uses the same citation for the pensions concerned.
§ 123 SGB VI Abs. 1 (two decimals) grundrente.py:33 (unchanged decorator on rewritten function) gesetze-im-internet.de/sgb_6/__123.html yes "Berechnungen von Geldbeträgen werden auf zwei Dezimalstellen durchgeführt."
Rentenwert 39.32 from 2024-07-01 (was 2024-01-07) rentenformel.yaml:226 gesetze-im-internet.de/rwbestv_2024/__1.html yes "ab dem 1. Juli 2024 39,32 Euro". BGBl. citation in the unchanged reference line not checked.
GRA quote "Durch die Anknüpfung an den aktuellen Rentenwert gelten die Freibeträge einheitlich im gesamten Bundesgebiet" grundrente.py:158 rvrecht.deutsche-rentenversicherung.de/.../gra_sgb006_p_0097a.html yes Verbatim.
BT-Drs. 19/18473 "states the 2021 thresholds as multiples of the West value" grundrente.py:160 dserver.bundestag.de/btd/19/184/1918473.pdf, p. 42 no (imprecise) Thresholds 1 250 / 1 600 / 1 950 / 2 300 are stated; the Rentenwert is a placeholder "XX,XX". Non-blocking 4.
BT-Drs. 19/18473, p. 42, thresholds 2021 2021-01-01/einkommensgrenzen_2021.yaml:6-8 same yes Page header "– 42 –"; values as quoted above.
GRA Version 008.00, Stand 15.01.2026; Abschnitt 5 quotes ("Bei zwei grundrentenberechtigten Ehegatten ...", "Der für Ehegatten höhere Freibetrag ist auch dann zu berücksichtigen, wenn ...") and "Dies gilt auch für dauernd getrenntlebende Ehegatten" 2026-03-01/*.yaml notes GRA URL above yes Page shows "Version 008.00", "Stand 15.01.2026"; all three quotes verbatim. Section numbers ("Abschnitt 2", "Abschnitt 5") not checked.
GRA Beispiel 4, Beispiel 7, Beispiel 10 Fall A 2023-07-01/*kapitalerträge*.yaml, 2026-02-01/*.yaml GRA URL above yes Numbers match, see next section.
"§76g SGB VI Abs. 4 Nr. 4" grundrente.py:248 (pre-existing, not in the diff) gesetze-im-internet.de/sgb_6/__76g.html no Should be Abs. 4 S. 4. Non-blocking 8.
GRA Version 006.00 (archived), Beispiel 7 with 2024 values 2024-02-01/*.yaml web.archive.org link in the file not verified Not fetched; arithmetic reproduces from the statute.
Court decisions (BSG B 5 R 9/24 R; LSG NRW L 18 R 707/22; SG Nürnberg S 20 R 211/23; SG Augsburg S 13 R 469/25), DRV Rheinland Fachinfo 01/2024, DRV brochure Nr. 210, DRV FAQ, Lohnsteuer kompakt test source/note fields not fetched not verified Expected values reproduce from the statute, see next section.

Count: 23 rows; 16 match, 4 mismatched or imprecise (one blocking, one pre-existing), 3 not verified.

Hand-recomputed test values

Recomputed by hand against the expected values in the YAML files.

Thresholds: factor × Rentenwert in force on 1 January, rounded up to a full euro. Rentenwerte from rentenformel.yaml at head: 34.19 (West, from 2020-07-01; unchanged on 2021-07-01), 36.02 (West, 2022-07-01), 37.60 (2023-07-01), 39.32 (2024-07-01), 40.79 (2025-07-01).

Year RW on 1 Jan 36.56 × RW 46.78 × RW 57.03 × RW 67.27 × RW Test file Expected
2021 34.19 1249.99 → 1250 1599.41 → 1600 1949.86 → 1950 2299.96 → 2300 2021-01-01/einkommensgrenzen_2021.yaml 1250 / 1600 / 1950 / 2300 ✓
2023 36.02 1316.89 → 1317 1685.02 → 1686 2054.22 → 2055 2423.07 → 2424 2023-09-01/einkommensgrenzen_nach_rentenanpassung_im_juli.yaml 1317 / 1686 / 2055 / 2424 ✓ (after the July adjustment, so the 1 January rule is exercised)
2024 37.60 1374.66 → 1375 1758.93 → 1759 2144.33 → 2145 2529.35 → 2530 2024-02-01/... 2145 / 2530 ✓
2025 39.32 1437.54 → 1438 1839.39 → 1840 – – 2025-05-01/... (uses them) ✓
2026 40.79 1491.28 → 1492 1908.16 → 1909 2326.25 → 2327 2743.94 → 2744 2026-05-01/*.yaml, 2026-10-01/... 1492 / 1909 / 2327 / 2744 ✓

Anrechnung (0.6 × income between the thresholds + income above the upper threshold):

  • 2022-05-01/ehepaar_einkommen_über_oberer_grenze.yaml: couple, income 3211.25, thresholds 2022 = 2021 values (RW on 1 Jan 2022 is 34.19): 0.6 × (2300 − 1950) + (3211.25 − 2300) = 210 + 911.25 = 1121.25 ✓; Zuschlag max(35.86 − 1121.25, 0) = 0 ✓.
  • 2022-09-01/alleinstehend_einkommen_über_oberer_grenze.yaml: 19927 / 12 = 1660.58; 0.6 × 350 + (1660.58 − 1600) = 210 + 60.58 = 270.58 ✓.
  • 2024-03-01/alleinstehend_einkommen_über_oberer_grenze.yaml: income 1800; 0.6 × (1759 − 1375) + (1800 − 1759) = 230.40 + 41 = 271.40 ✓; 320 − 271.40 = 48.60 ✓.
  • 2025-05-01/alleinstehend_anrechnung_übersteigt_zuschlag.yaml: 0.6 × (1765.08 − 1438) = 0.6 × 327.08 = 196.248 → 196.25 ✓.
  • 2026-02-01/ehepaar_gemeinsames_einkommen_über_oberer_grenze.yaml (GRA Beispiel 7): 0.6 × (2744 − 2327) + (2900 − 2744) = 250.20 + 156 = 406.20 ✓. The GRA text gives exactly these steps ("250,20 EUR (60 % von 417,00 EUR)", "156,00 EUR", "insgesamt 406,20 EUR").
  • 2026-05-01/verwitwet_einkommen_zwischen_den_grenzen.yaml: 0.6 × (1550 − 1492) = 34.80 ✓.

Income for the following run (einkommen_im_folgejahr_*):

  • 2023-07-01/einkommen_für_folgejahr_kapitalerträge_sparer_pauschbetrag.yaml (GRA Beispiel 4): 1580 − 1000 Sparer-Pauschbetrag = 580 ✓ (GRA: "anzurechnende Einkünfte aus Kapitalvermögen: 580,00 EUR").
  • 2023-07-01/einkommen_für_folgejahr_gemeinsame_kapitalerträge.yaml (GRA Beispiel 10 A): 5000 − 2000 = 3000, half each = 1500 ✓ (GRA: "Die anzurechnenden Kapitalerträge betragen somit 3.000,00 EUR. Gemeinsame Einkünfte der Ehegatten sind jedem Ehegatten zur Hälfte zuzurechnen.").
  • 2024-07-01/einkommen_für_folgejahr_ohne_zuschlag.yaml: zvE 24000 / 2 persons / 12 = 1000 each. Person 0 (Renteneintritt 2020, Besteuerungsanteil 80 %, inferred from the expected value, the parameter table was not opened): Altersrente 1000 + 100 Zuschlag, Basisversorgung without Zuschlag 1000, tax-free 0.2 × 1000 = 200 → 1200 ✓. Person 1 (2015, 70 %): (500 + 200 berufsständisch) × 0.3 = 210 → 1210 ✓. The 300 € sonstige private Vorsorge of person 0 correctly does not enter (not Doppelbuchstabe aa).

Resolve CHANGES.md by keeping both entries. In the two wohngeld 2025 test cases, keep main's removal of jahr_renteneintritt and this branch's new bezieht_altersrente input. Take main's pixi.lock with this branch's gettsim-personas pin (pixi lock --check passes).
§ 97a Abs. 2 S. 2 SGB VI reduces the Zuschlag by the income of the year before
the previous one (S. 3: the year before that if there is no tax assessment).

- Rename the input to einkommen_vorvorjahr_m_ehe and the target to
  einkommen_für_einkommensanrechnung_im_übernächsten_jahr_y; run the notebook's
  first step on 2024 data for a January 2026 Zuschlag.
- List the t−3 fallback, the approximated steuerfreier Teil of pensions and the
  1/10 rule for § 20 Abs. 1 Nr. 6 EStG among the notebook's simplifications.
- Document that a negative zvE offsets the other components (no source either
  way) and that a pension supplied as data must include the Zuschlag.
- Cite § 97a Abs. 4 S. 1-4 precisely, quote BT-Drs. 19/18473 and the GRA for the
  uniform and couple thresholds, and fix the § 76g Abs. 4 S. 4 reference.
- Add CHANGES.md entries for the thresholds, the tax exemption and the
  Rentenwert date key.
@MImmesberger
MImmesberger force-pushed the grundrente-einkommen-zve branch from 9d88d03 to 6bc82e5 Compare November 18, 2026 14:27
# Conflicts:
#	CHANGES.md
#	pixi.lock
Since #1237 the income tax needs the Lohn- und Einkommensersatzleistungen,
Arbeitslosengeld and Elterngeld; the 2024 run also needs wohnort_ost_hh.
The paths exceeded the Windows path limit when gettsim is cloned into the pixi
cache (gettsim-personas CI on Windows).
@MImmesberger

Copy link
Copy Markdown
Member Author

Done!

# Conflicts:
#	CHANGES.md
#	pixi.lock
Since #1238 the Altersentlastungsbetrag needs geburtsmonat and geburtstag.

@hmgaudecker hmgaudecker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict

Approve, subject to the re-pin of gettsim-personas. All other points of the first review are resolved at 1e1df568.

  • Reference year: input einkommen_vorvorjahr_m_ehe, target einkommen_für_einkommensanrechnung_im_übernächsten_jahr_y, docstrings, CHANGES.md, inputs_from_prior_periods.md and the notebook (2024 income for a January 2026 Zuschlag) now follow § 97a Abs. 2 S. 2, 3 SGB VI. No old name is left in src or docs.
  • Non-blocking 1–9: done. The new sentence on § 97a Abs. 2 S. 7 is correct: "Von dem Einkommen nach Satz 1 Nummer 1 und 2 […] ist der darin enthaltene Rentenanteil, der auf dem Zuschlag an Entgeltpunkten für langjährige Versicherung beruht, abzuziehen."
  • Negative zvE: fine to keep the plain sum now that the docstring and the test note say that no source settles it.

Before merging

  • pyproject.toml still pins gettsim-personas to the branch grundrente-einkommen (lines 114 and 154). Follow the merge order in the description: merge ttsim-dev/gettsim-personas#63, re-pin to main, pixi lock.
  • CHANGES.md conflicts with main.
  • The test jobs at this commit are still queued or running; ty, pre-commit and the docs build are green.

# Conflicts:
#	CHANGES.md
#	src/gettsim/tests_germany/test_policy_cases.py
MImmesberger added a commit to ttsim-dev/gettsim-personas that referenced this pull request Nov 18, 2026
Companion to ttsim-dev/gettsim#1246. That PR makes the
Grundrentenzuschlag tax-free (§ 3 Nr. 14a EStG). From 2021 the taxable
pension therefore needs `grundrente__betrag_m` and
`bezieht_altersrente`.

Six personas fix `altersrente__betrag_m` as a constant
(`grundsicherung_im_alter/*` and
`gesetzliche_altersrente/*_with_fixed_public_pension`). Computing the
Zuschlag for them would take invented pension histories and would
contradict the fixed total. So they set `grundrente__betrag_m = 0`, and
set `bezieht_altersrente` per person: true for the retirees, false for
the working-age child. All outputs for 2021–2025 are unchanged.

gettsim is pinned to `main` again. The full test suite passed against
the head of ttsim-dev/gettsim#1246. Until that PR is merged (and
`pixi.lock` picks it up),
`test_persona_inputs_does_not_contain_unnecessary_inputs` fails here,
because gettsim `main` does not need the two new inputs yet.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@MImmesberger
MImmesberger merged commit df19b30 into main Nov 26, 2026
14 checks passed
@MImmesberger
MImmesberger deleted the grundrente-einkommen-zve branch November 26, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Grundrente tests for married couples

2 participants