<h3 class="m-4">Past <%= num_days %> day new users (<%= User.where("created_at > ?", num_days.day.ago).count %>)</h3>
<div class="row">
  <div class="col">
    <div class="card">
      <div class="card-header">
        <strong>Overall data:</strong>
      </div>
      <ul class="list-group list-group-flush">
        <li class="list-group-item">
          Average comments: <%= User.where("created_at > ?", num_days.day.ago).average(:comments_count) %>
        </li>
        <li class="list-group-item">
          Average articles: <%= User.where("created_at > ?", num_days.day.ago).average(:articles_count) %>
        </li>
        <li class="list-group-item">
          Average reactions: <%= User.where("created_at > ?", num_days.day.ago).average(:reactions_count) %>
        </li>
      </ul>
    </div>
  </div>
</div>
