Fixed scheduler nextCheck calculation