mirror of
https://notabug.org/scuti/amort
synced 2024-11-25 16:28:50 +05:30
Merge branch 'master' into publish
This commit is contained in:
commit
2b84cd0a73
@ -29,7 +29,6 @@ def generate_amortization_schedule(principal, interest_rate, loan_term, extra_pa
|
||||
# Apply one-time payment if provided
|
||||
if one_time_payment and payment_number == one_time_payment['payment-number']:
|
||||
principal_payment += one_time_payment['amount']
|
||||
remaining_balance -= one_time_payment['amount']
|
||||
if extra_payments != []:
|
||||
one_time_payment = extra_payments.pop(0)
|
||||
# Update remaining balance
|
||||
|
Loading…
Reference in New Issue
Block a user