As has been said elsewhere, I think ```s``` is correct (see line 11 of Alg 16 in Luke's book). The piece you're missing is the "we have run out of total time" check.