Fix counting of bugs for the last week/month