Skip to content

Commit

Permalink
Make car.py script use more realistic interest rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran4 committed Sep 29, 2023
1 parent 31bd5a5 commit 5d2e02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def print_costs(
for ratio in ratios:
remaining = cost - cost * ratio
# 1.12 is 4% over 6 years, 1.15 is 4% over 7 years
six_years = (remaining / 6.0 / 12.0) * 1.12 + (insurance or 0)
seven_years = (remaining / 7.0 / 12.0) * 1.15 + (insurance or 0)
six_years = (remaining / 6.0 / 12.0) * 1.2 + (insurance or 0)
seven_years = (remaining / 7.0 / 12.0) * 1.24 + (insurance or 0)

print(
str(ratio).ljust(5),
Expand Down

0 comments on commit 5d2e02e

Please sign in to comment.