Passenger.java, line 47: int expectedWait = Math.abs(source - destination + 1); Should be: int expectedWait = Math.abs(source - destination) + 1;