set up framework for scheduling to run in background with period re-calculations and emailed results