Add support for stats gathering based on day, week and month