Schedule function updates

I will do the same with MAX_DAY_OFFSET = 5