{% extends "core/base.html" %} {% block title %}Dashboard{% endblock %} {% block content %}

Dashboard

{% if not rows %}

No complete month of consumption yet. Add meter readings to get started.

{% else %}
Latest month{{ latest.total.units|floatformat:0 }} units{{ latest.label }} · Rs {{ latest.bill.total|floatformat:"0g" }}
Cost per unitRs {{ latest.cost_per_unit|floatformat:2 }}all-in average, {{ latest.label }}
{% if marginal %}
Next unit costsRs {{ marginal.all_in_rate|floatformat:2 }}slab {{ marginal.slab_label }} at Rs {{ marginal.slab_rate }} before duty and taxes
{% endif %} {% if next_bill %}
Upcoming bill ({{ next_bill.2|date:"M Y" }})Rs {{ next_bill.1.total|floatformat:"0g" }}about {{ next_bill.0.units|floatformat:0 }} units
{% endif %}

Monthly consumption by slab

{% for label, cls in legend %}{{ label }} units{% endfor %}
{{ unit_chart }}

Cost per unit (Rs)

{{ cpu_chart }}

Rising cost per unit means more of your usage sits in the expensive upper slabs.

Next 3 bills

{% for f, b, start in forecast %}{% endfor %}
MonthUnitsBill (Rs)
{{ start|date:"M Y" }}{{ f.units|floatformat:0 }}{{ b.total|floatformat:"0g" }}

Same month last year, scaled by the year-on-year trend.

Anomalies

{% for a in anomalies %}

{{ a.label }}: {{ a.units|floatformat:0 }} units vs {{ a.baseline|floatformat:0 }} a year earlier ({{ a.ratio|floatformat:2 }}x)

{% empty %}

No month differs sharply from the same month last year.

{% endfor %}
{% endif %} {% endblock %}