Skip to content

Commit

Permalink
Update examples/long_running.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
  • Loading branch information
timmens and hmgaudecker authored Feb 28, 2024
1 parent 20cdd61 commit fc4812d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/long_running.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def age(_period):
# State transitions
# --------------------------------------------------------------------------------------
def next_wealth(wealth, consumption, working, wage, interest_rate):
return (1 + interest_rate) * (wealth - consumption) + wage * working
return (1 + interest_rate) * (wealth + working * wage - consumption)


def next_health(health, exercise, working):
Expand Down

0 comments on commit fc4812d

Please sign in to comment.