time window dynamicly generation