{% extends "base.html" %} {% block title %}{{ _("Loans") }} · Wealth Dashboard{% endblock %} {% block heading %}{{ _("Loans and mortgages") }}{% endblock %} {% block lede %}

{{ _("What you owe, computed from the terms rather than typed in: the schedule gives the balance as of today, the overview subtracts it from the net worth, and nothing needs updating month by month. A balance typed in on the loan's account page — from the bank's letter — still wins on the day it is typed.") }}

{% endblock %} {% block content %} {% if loans %}
{{ _("Owed today") }}
{{ money(total_debt, base_currency) }}
{{ _n(loans | length, "{n} loan", "{n} loans") }}
{{ _("Per month") }}
{{ money(per_month, base_currency) }}
{{ _("all instalments, as a monthly figure") }}
{% endif %} {% for l in loans %}

{{ l.name }}

{{ periods[l.period_months] | replace('-', ' ') }} · {{ '%g' | format(l.rate_pct) }} % · {{ _("the account") }}{% if l.owners %} · {{ l.owners | map(attribute='name') | join(', ') }}{% endif %}
{{ _("Still owed") }}{{ money(l.status.balance, l.currency) }}
{{ _("Of") }}{{ money(l.principal, l.currency) }}
{{ _("Instalment") }}{{ money(l.status.payment, l.currency) }}
{{ _("Paid so far") }}{{ money(l.status.paid_total, l.currency) }}{{ _f("{interest} of it interest", interest=money(l.status.paid_interest, l.currency)) }}
{{ _("Interest over the whole loan") }}{{ money(l.status.total_interest, l.currency) }}
{{ _("Paid off") }}{% if l.status.endless %}{{ _("never at this payment") }}{% else %}{{ d(l.status.payoff) }}{% endif %}{{ _n(l.status.payments_left, "{n} instalment left", "{n} instalments left") }}{% if l.status.next %} · {{ _f("next {date}", date=d(l.status.next.date)) }}{% endif %}
{{ (100 * l.status.progress) | round(0) | int }} % {{ _("repaid") }}
{% if l.notes %}

{{ l.notes }}

{% endif %}
{{ _("The schedule, instalment by instalment") }}
{% for r in l.schedule %} {% endfor %}
#{{ _("Date") }}{{ _("Instalment") }}{{ _("Interest") }}{{ _("Capital") }}{{ _("Extra") }}{{ _("Balance after") }}
{{ r.n }}{{ d(r.date) }} {{ money(r.payment, l.currency) }} {{ money(r.interest, l.currency) }} {{ money(r.capital, l.currency) }} {{ money(r.extra, l.currency) if r.extra else '—' }} {{ money(r.balance, l.currency) }}
{{ _("Change the terms, or delete") }}
{% with loan=l %}{% include "_loan_fields.html" %}{% endwith %}
{% endfor %}

{{ _("Add a loan") }}

{{ _("a mortgage, a car loan, a consumer credit — anything paid off in instalments") }}
{% with loan=none %}{% include "_loan_fields.html" %}{% endwith %} {% if people %}
{% for p in people %}{% endfor %}
{% endif %}

{{ _("The instalment is the figure on the contract. Leave it blank and give the term instead, and it is worked out as a constant annuity — the usual shape of a mortgage. Interest is rounded to the cent each period, the way a bank does it, so the schedule reproduces the bank's own figures.") }}

{% endblock %} {% block scripts %} {% endblock %}