PHP schedule decider