Code to do daily/weekly reports