Time windows (working version - without considering execution times)