solving with time windows