Please help me set the correct visibility of the date

please help me set the correct visibility of the date

Hi, I want to set the visibility of order cancellation, please help me! there are orders in the database they have a due date, how can I set the visibility of order cancellation when there is 1 day before the start of the order? so that the cancel order button disappears when there is 1 day left before the order, if you know please reply

Done