calculate start and end date of feature