Factor “time of day math” out of scheduler