Changing the start due date logic to be its own function