fixed bugs in minute and hourly granularity and implemented day level roll up