Auto Email Report TIme

For Auto Email Reports that are scheduled to be monthly and have no date filters

The scheduler.py shows that monthly reports are scheduled to be run 1st of the month at midnight

How is the date range calculated for the generated report it sends ?

Any Ideas?

My guess is somewhere in the code possibly here?