{% extends 'base.html' %} {% load humanize %} {% block title %}Interest Schedule - {{ loan.loan_number }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Interest Schedule

{{ loan.loan_number }} - {{ loan.borrower.get_full_name }}

← Back to Loan

📊 Interest Breakdown

Principal Amount: KSh {{ loan.principal_amount|floatformat:2|intcomma }}
Interest Rate: {{ interest_breakdown.interest_rate|floatformat:1 }}% per month
Total Interest: KSh {{ interest_breakdown.total_interest|floatformat:2|intcomma }}
Interest Paid: KSh {{ interest_breakdown.interest_paid|floatformat:2|intcomma }}
Interest Outstanding: KSh {{ interest_breakdown.interest_outstanding|floatformat:2|intcomma }}
{% if schedule %}

📅 Payment Schedule

{% for payment in schedule %} {% endfor %}
Payment # Due Date Principal Interest Total Payment Balance
{{ forloop.counter }} {{ payment.due_date|date:"M d, Y" }} KSh {{ payment.principal|floatformat:2|intcomma }} KSh {{ payment.interest|floatformat:2|intcomma }} KSh {{ payment.total|floatformat:2|intcomma }} KSh {{ payment.balance|floatformat:2|intcomma }}
{% else %}
â„šī¸

No payment schedule available for this loan.

{% endif %}
{% endblock %}