added end date instead of num of days