# ========================================================= # Werte- & Selbstwert-Verlustmodell # Negatives Renditeprogramm (Zinseszinseffekt) # ========================================================= from dataclasses import dataclass # --------------------------------------------------------- # MODELLPARAMETER # --------------------------------------------------------- @dataclass class ModellParameter: startwert: float = 100.0 zieljahr: int = 2025 # Verluststufen nach Geburtsjahr VERLUST_STAFFEL = [ (1995, 0.001), # bis 1995 -> 0,1 % (2000, 0.005), # 1996–2000 (2005, 0.010), # 2001–2005 (2010, 0.015), # 2006–2010 (2015, 0.020), # 2011–2015 (2100, 0.025), # ab 2016 ] # --------------------------------------------------------- # HILFSFUNKTIONEN # --------------------------------------------------------- def ermittle_verlust_rate(geburtsjahr: int) -> float: for grenze, rate in VERLUST_STAFFEL: if geburtsjahr ...
Kommentare
Kommentar veröffentlichen