Conditional Tab in Shiny

How to create a new Tab in Shiny based on the input(not a panel)? For example: A new tab should appear if the difference between 2 dates is greater than 7.

Can you please post a minimal reporudcible example, or reprex. You are more likely to get help solving your problem if you show what you have already tried.