Fixed shift allocation. It was not calculating the correct dates so rooms were wrongly shown as occupied