From d6bd844d5d7f472d1ce2e984120256f03e64810e Mon Sep 17 00:00:00 2001
From: john
Date: Mon, 20 May 2024 17:54:42 -0400
Subject: [PATCH] Updated files to produce current daily interest accrual
information.
---
mortgage/templates/main.html | 21 +++++++++---------
mortgage/web.py | 42 +++++++++++++++++++-----------------
2 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/mortgage/templates/main.html b/mortgage/templates/main.html
index 5a6217c..72e004e 100644
--- a/mortgage/templates/main.html
+++ b/mortgage/templates/main.html
@@ -37,7 +37,7 @@
});
});
-
+
- Loan Information
@@ -68,9 +68,10 @@
| Term: | {{model.parameters.periods }} months |
| Next Payment Due Date: | {{model.parameters.next_due_date}} |
| Payment Due: | {{ "$%.2f"|format(model.parameters.next_payment_amt) }} |
+ | Daily Interest Accrual: | {{ "$%.2f"|format(model.current_daily_interest_accrual) }} |
-
+
@@ -79,7 +80,7 @@
| Loan History |
- | #
+ | # |
Due Date |
Date Paid |
Days Interest |
@@ -104,18 +105,18 @@
{{ "$%.2f"|format(item.new_balance) }} |
{% if item.month == 12 or loop.last %}
- | Total interest paid in {{item.year}} is {{ "$%.2f"|format(item.annual_interest_to_date) }}. |
+ | Total interest paid in {{item.year}} is {{ "$%.2f"|format(item.annual_interest_to_date) }}. |
{% endif %}
{% endfor %}
- | Total interest paid to date is {{ "$%.2f"|format(model.total_interest_paid_to_date) }}. |
+ | Total interest paid to date is {{ "$%.2f"|format(model.total_interest_paid_to_date) }}. |