Adding flexible time intervals