feature #2897: Calculate last seven days for the dashboard graphs