[update]: Loan fees #15

Merged
ameye merged 1 commits from loan_repayment_dates into master 2025-04-25 11:33:54 +00:00
+1 -1
View File
@@ -102,7 +102,7 @@ class BaseService:
upfront_payment = sum(upfront_fees)
# Repayment amount: (principal + only those fees not due immediately i.e due_days != 0)
repayment_amount = amount + sum(postpaid_fees) * tenor
repayment_amount = amount + (sum(postpaid_fees) * tenor)
# Total amount: (upfront_payment + repayment_amount)
total_amount = upfront_payment + repayment_amount