From 9ac3fff5f218c137b4cf4acc1818f936fb45db86 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 7 Feb 2025 17:04:43 +1100 Subject: [PATCH] add post-lease car costs --- calc.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/calc.py b/calc.py index c046472..34c9901 100644 --- a/calc.py +++ b/calc.py @@ -45,6 +45,9 @@ def calculate_savings_depletion(finance): # Calculate daily living expenses daily_living_expenses = Living_Expenses / 365 + # take a stab at future rego and insurance on the Ioniq 6 when we finish the lease - paid every anniversary of the Car balloon payment date + post_lease_car_costs = 800 + 2000 + # Start the calculation current_savings = Savings depletion_date = None @@ -119,6 +122,11 @@ def calculate_savings_depletion(finance): current_savings -= Car_balloon print(f"car balloon paid={current_date} - {Car_balloon}") + # Anniversary of Car balloon so pay insurance/rego + if current_date.year >= car_balloon_date.year and current_date.month == car_balloon_date.month and current_date.day == car_balloon_date.day: + print(f"time to pay IONIQ 6 insurance/rego of: {post_lease_car_costs}" ) + current_savings -= post_lease_car_costs + if current_date.date() == overseas_trip_date.date(): current_savings -= Overseas_trip print(f"overseas_trip={current_date} - {Overseas_trip}")