When creating or editing an existing service, you can set the last date that patients can book the service.
In the appointment limits section,