Update schedule.c

Fixed an even more subtle bug.... turns out the timer was wrong. Now try to break it :)