Prevent Delivery / Available dates in the past

If the product available date is in the past, delivery date should be based on current date. Otherwise, for products that have their availability date in the past, a delivery date in the past is shown.