                                 {% endif %}
                                    
                                    <!-- Calculate accounts -->
                                    {% if expense.card_used %}
                                        {% if expense.card_used in months[month].by_card %}
                                            {% set _ = months[month].by_card.update({expense.card_used: months[month].by_card[expense.card_used] + expense.amount}) %}
                                        {% e