making program check if students commited in time