{% extends "base.html" %} {% block title %}{{ _("Cash Flow") }} · Wealth Dashboard{% endblock %} {% block heading %}{{ _("Cash Flow") }}{% endblock %} {% block lede %}

{{ _("Money in against money out, per month. Internal transfers are excluded — moving money between your own accounts is not income and not spending, and counting it would inflate both by the same amount. Investment is separated for the same reason: a month you invested €3,000 is not a month you overspent.") }}

{% endblock %} {% block content %} {% macro fx_note(x) %} {% if x.converted %} {% set amounts %}{% for u in x.converted %}{{ money(u.amount, u.currency) }}{{ ", " if not loop.last }}{% endfor %}{% endset %}

{{ _f("Includes {amounts}, converted at ECB rates — each month at its own rate, and months older than the rates on file at the oldest.", amounts=amounts) | safe }}

{% endif %} {% if x.unconverted %}

{{ _("Not counted, because no rate here covers them:") }} {% for u in x.unconverted %}{{ money(u.amount, u.currency) }}{{ ", " if not loop.last }}{% endfor %} {% set settings_link %}{{ _("Settings") }}{% endset %} {{ _f("Fetch rates under {settings}.", settings=settings_link) | safe }}

{% endif %} {% endmacro %}
{{ _("Income") }}
{{ money(data.average_income, data.base_currency) }}
{{ _n(data.months_covered, "a month, over {n} month", "a month, over {n} months") }}
{{ _("Spending") }}
{{ money(data.average_spending, data.base_currency) }}
{{ _("a month") }}
{{ _("Invested") }}
{{ money(data.total_investment, data.base_currency) }}
{{ _("over the period") }}
{{ _("Kept") }}
{% set kept = data.total_income - data.total_spending %}
{{ money(kept, data.base_currency) }}
{{ _("income less spending") }}
{{ fx_note(data) }} {% if data.months %}

{{ _("By month") }}

{{ _f("in {currency}", currency=data.base_currency) }}

{{ _("Where it goes") }}

{{ _("By category") }}

{{ _("per month on average") }}
{% for c in data.by_category %} {% endfor %} {% if data.income_by_category %} {% for c in data.income_by_category %} {% endfor %} {% endif %}
{{ _("Category") }}{{ _("Per month") }}{{ _("Total") }}
{{ c.label }} {{ money(c.per_month, data.base_currency) }} {{ money(c.total, data.base_currency) }}
{{ _("Where it comes from") }}
{{ c.label }} {{ money(c.per_month, data.base_currency) }} {{ money(c.total, data.base_currency) }}
{% else %}

{{ _("No transactions in the base currency yet.") }}

{% set cat_link %}{{ _("Categorize") }}{% endset %}

{{ _f("Connect a bank or import a statement, then categorise on the {page} page — until things have categories, this page has nothing to add up.", page=cat_link) | safe }}

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