Schedule function updates

We use 26 in a bunch of places in this PR.  It should probably be a module-level constant (MAX_DAYS_OFFSET or somesuch).