Changed contract logic to stop date range from enveloping existing contract dates