This setting is part of your Scheduling rules. You can determine how many hours before an appointment can your clients cancel. By default, it’s 24 hours.
Step-by-step guide:
Go to your Admin page.
Go to Settings > Scheduling rules.
Navigate to “Clients can’t cancel within [ Number ] hours / days before an appointment”
Change the number of hours.
Save when you're done.