Update base_service.py
This commit was merged in pull request #15.
This commit is contained in:
@@ -102,7 +102,7 @@ class BaseService:
|
|||||||
upfront_payment = sum(upfront_fees)
|
upfront_payment = sum(upfront_fees)
|
||||||
|
|
||||||
# Repayment amount: (principal + only those fees not due immediately i.e due_days != 0)
|
# 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)
|
||||||
total_amount = upfront_payment + repayment_amount
|
total_amount = upfront_payment + repayment_amount
|
||||||
|
|||||||
Reference in New Issue
Block a user