Define the time being sold
A service name is not a scheduling rule. A thirty-minute consultation might mean thirty minutes with a practitioner, or thirty minutes from arrival to departure; the difference changes every advertised start time. Write down when the customer must arrive, when the practitioner begins, when the customer leaves, and when the next customer may enter. The customer-facing duration should describe the actual service promise. The internal occupied interval can be longer because a room needs preparation, a device needs sanitising, or the practitioner needs to complete notes. Treat those intervals as capacity requirements, not as mysterious extra time added after confirmation. If a business offers several service types, assign each its own duration and resource requirements instead of applying one default to every item. A short phone call, an in-person assessment and a procedure using a shared room do not consume the same resources. Make the rule visible to reception staff so manual bookings use the same calendar logic as online bookings.
Separate service, preparation and turnaround
Model an appointment as a customer interval plus any occupied time before and after it. For a proposed start at 14:00, an illustrative forty-minute service with ten minutes of preparation and fifteen minutes of turnaround occupies the relevant resource from 13:50 until 14:55. Those numbers are an example for reasoning, not an industry benchmark or a claim about a real business. The preceding appointment must release the room by 13:50, while the following appointment cannot require that room before 14:55. A practitioner and room may have different occupancy intervals: a room may need cleaning after the practitioner is free, and a practitioner may need notes even after the customer leaves. Store those distinctions explicitly when they affect capacity. Otherwise an apparently free practitioner can be assigned to a room that is still occupied. The customer sees the promised 14:00 start and forty-minute service; staff see the complete occupancy. If the business wants to shorten a buffer, test the actual work first rather than silently editing a configuration field.
Check every constrained resource
Availability is the intersection of several conditions, not merely an empty square on one calendar. A candidate slot must fit the practitioner’s working period, the room or equipment schedule, the full occupied interval and any existing confirmed appointment. It must also respect a service’s opening hours and any deliberate lead time for preparation. If two practitioners can provide a service but only one room exists, the room determines capacity even when both practitioners appear free. If an appointment requires an assistant for its opening segment, that segment needs its own resource check. Document which requirements are mandatory and which are preferences; otherwise an online slot may be offered when staff cannot actually deliver it. A calendar integration helps discover busy intervals, but it does not infer your business-specific preparation and cleanup rules. Google Calendar’s free/busy response reports busy ranges for queried calendars and can also report errors. A failed or missing calendar response must not be treated as proof that a person or room is free. Keep the booking system’s own confirmed records authoritative for commitments.
Use precise interval boundaries
A slot search should compare time intervals, not labels such as “afternoon”. Define the occupied start and end and reject any new occupied interval that overlaps a committed interval on the same resource. Adjacent intervals can meet at a boundary if the previous end is exclusive and the next start is inclusive, but only when the required turnaround has already been included. Google Calendar documents an inclusive event start and exclusive event end, and its free/busy response uses the same boundary idea for busy ranges. That convention is useful for avoiding a false collision at exactly 15:00; it does not erase the need for a fifteen-minute cleaning interval. Store timestamps with a clear time zone and show local Hong Kong time to the customer. If calendars from other locations feed the system, convert before comparing. A display string with no time-zone context is a poor basis for a booking decision. Test the last possible slot of the day: a service ending at closing time may be acceptable while its cleanup extending past staff availability is not.
Work through a two-booking example
Suppose one room is available from 09:00 to 12:00. A customer books a 09:30 service lasting forty minutes, with ten minutes of room setup before and fifteen minutes of cleanup after. The room is occupied from 09:20 to 10:25. A second forty-minute service advertised at 10:15 is impossible even though the first customer left at 10:10: the room is still being prepared for reuse. A 10:35 customer start is possible on the room timeline if its ten-minute preparation begins at 10:25 and the practitioner is also available. If the second service needs a different device that is busy until 10:40, the candidate fails despite the free room. This is an illustrative scenario, not observed utilization. It reveals why merely adding a fixed gap between customer start times is unreliable: the gap must be applied to the correct resource and side of each service. When staff manually move one booking, recalculate both the old and new resource intervals rather than only changing the visible customer time.
Publish only slots that can be held
The search result is a proposal, not a reservation. Between display and confirmation another customer or staff member may take the same resource. Recheck the complete occupied interval when a customer selects a slot, then make the final hold or booking atomically in the system that owns capacity. If the slot was taken, explain that it is no longer available and offer current alternatives; do not confirm first and repair later by telephone. A temporary hold can have an explicit expiry and should release automatically when checkout or form completion fails. Keep the customer-facing message precise: “14:00 consultation, approximately forty minutes” and any arrival instruction should agree with staff’s operational schedule. Do not display cleanup time as though the customer receives extra service. Conversely, if customers must remain on site during preparation or paperwork, include that expectation in the published visit length. The decision is operational as well as technical, because staff must be able to honor the same time promise consistently.
Review exceptions before widening availability
Measure actual preparation and turnaround in the business before changing a buffer, but avoid presenting a single unusually fast appointment as the normal case. Review service variants, accessibility assistance, room changeovers, staff breaks and work that can run in parallel. A buffer may be unnecessary for a remote consultation but essential for a treatment room; it may be longer after a specific service rather than before every service. Keep rule versions or an audit trail so a later complaint can be checked against the rule in effect when the booking was accepted. When a resource becomes unavailable, recompute future offers and identify existing commitments separately; removing a slot from the website does not resolve a booking already promised. Test a matrix of adjacent bookings, shared equipment, last daily slots, a manual staff booking and a calendar integration error. Only then widen availability. The useful outcome is a schedule whose visible start times can be delivered, not a page that appears full of choice while staff quietly absorb conflicts.
Decide who owns each calendar rule
A workable duration policy needs an owner. Ask the service lead to define what is delivered, the practitioner to verify preparation and notes, and the person responsible for the room or equipment to confirm turnaround. The booking administrator can then implement the rules and test them with real calendar examples. Record a reason and effective date when a rule changes, because a future booking may have been accepted under an older duration. Decide whether an existing confirmed appointment keeps its original terms, needs a staff review, or requires a customer conversation; never let a configuration change silently shorten service already promised. Review unusually frequent manual overrides as a signal that the model does not match daily work. A recurring override may reveal a missing service variant or resource, while a one-off exception might need a clear staff note. The owner should compare the visible customer offer with the actual diary before a change goes live. This keeps the availability calculation tied to a service that people can deliver, rather than treating a scheduling setting as a substitute for operational agreement.
Plan for a service that runs late
Buffers are planning allowances, not a promise that every service will finish on schedule. Decide how staff respond when a visit overruns: who notices the delay, who checks whether a later customer can still be served, and when the customer should receive an updated arrival instruction. Do not automatically steal the next appointment’s preparation time to keep the diary looking tidy. If the room is still occupied, the next displayed start may no longer be deliverable even though the booking record remains confirmed. Keep the delay distinct from the service template so one late visit does not silently alter future standard durations. After several real instances, review the pattern with staff: perhaps a particular service needs a longer template, or perhaps late arrivals need a separate customer policy. Record the reason for any manual override. A useful scheduling system helps people make an honest decision at the moment of disruption and later shows whether the standard buffer was realistic.
Before you proceed
- Can staff identify the customer service interval and each resource’s occupied interval for every service?
- Does a slot remain unavailable when a room or required device is busy, even if the practitioner is free?
- Is the full interval checked again when a customer confirms a displayed slot?


