limit monthly and yearly stats calculation to only the appropriate days