How to generate a report for specific time frame?