Modify timetest(),nexttime() if input time after last