v1.22.2
v1.22.2 (2023-08-10)
Minor feature
- fix(simulation): add salary income & expense growth (
84e6524
)
You can now set the growth rate of your salary and expenses. For example, if you earn 1000€/month
and your salary grows by 3% every year, you can set the income_growth
to 3% and the salary will
be updated every year (1/12th every month in reality).
You can also set the expenses_follow
to 100% to follow the income growth:
- If your salary grows by 3%, your expenses will grow of the same amount (100% of the income growth).
- If you set
expenses_follow
to 0%, your expenses will stay the same (0% of the income growth). - If you set
expenses_follow
to 50%, your expenses will grow by half of the income growth (50% of the income growth).
To use this new feature, you can use the new Salary
event:
livreta = Line("Livret A", ...)
...
assistant = Assistant(
...,
simulation = Simulation(
events=[
Salary(
livreta,
income=3000,
expenses=2000,
income_growth=1, # <- 1% growth every year (net of inflation)
expenses_follow=75, # <- Save 25% of the income growth
name="My Job",
),
...
]
)
)