adding and converting end ranges to dates