Whene a user confirm an appointment, can i block

Hello!
Whene a user confirm an appointment, can i block prenotation for X time before other users can confirm other appointments?

Thank you