This has to be based directly on the current estimated clock time and has to allow for negative period starts.