Code included to consider data over a range of period i.e, 1week, 1 month or more