compute totals for reports index page