changed the start-date/end-date logic allocations