Implementation of interval based structure to retrieve data for a particular time period.