add post-lease car costs
This commit is contained in:
8
calc.py
8
calc.py
@@ -45,6 +45,9 @@ def calculate_savings_depletion(finance):
|
|||||||
# Calculate daily living expenses
|
# Calculate daily living expenses
|
||||||
daily_living_expenses = Living_Expenses / 365
|
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
|
# Start the calculation
|
||||||
current_savings = Savings
|
current_savings = Savings
|
||||||
depletion_date = None
|
depletion_date = None
|
||||||
@@ -119,6 +122,11 @@ def calculate_savings_depletion(finance):
|
|||||||
current_savings -= Car_balloon
|
current_savings -= Car_balloon
|
||||||
print(f"car balloon paid={current_date} - {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():
|
if current_date.date() == overseas_trip_date.date():
|
||||||
current_savings -= Overseas_trip
|
current_savings -= Overseas_trip
|
||||||
print(f"overseas_trip={current_date} - {Overseas_trip}")
|
print(f"overseas_trip={current_date} - {Overseas_trip}")
|
||||||
|
|||||||
Reference in New Issue
Block a user