just fixed up buyout needing to get more rego and insurance from nov 25 onward

This commit is contained in:
2025-02-20 22:13:07 +11:00
parent 545c15e276
commit a82ff530bd

View File

@@ -205,7 +205,7 @@ def calculate_savings_depletion(finance):
current_savings -= ioniq6_rego
add_annotation(finance, current_date, current_savings, -ioniq6_rego, "IONIQ 6 rego" )
# if we buy car outright, then as long as this anniversary is after buyout date, pay ins and rego
elif current_date.year > car_buyout_date.year:
elif current_date.year >= car_buyout_date.year:
current_savings -= (ioniq6_ins + ioniq6_rego)
add_annotation(finance, current_date, current_savings, -(ioniq6_ins+ioniq6_rego), "IONIQ 6 ins/rego" )