apply endDate