TRAIN with time window