tfolio.description %}
                                    <div class="small text-muted">{{ portfolio.description }}</div>
                                    {% endif %}
                                </div>
                            </td>
                            <td>{{ portfolio.investments|length }}</td>
                            <td>${{ "%.2f"|format(portfolio.calculate_total_value()) }}</td>
                            <td>
                                {% set gain_loss = portfolio.calculate_