Scheduler now works as expected with multiple time windows.

@mudrole1 - Fixed bug, that time t was preceeding start of a task