When building an appointment scheduling system, one of the problems that looks simple at first is:

«“Find the available time slots for a doctor.”»

But the problem becomes much more interesting when different services have different durations.

For example:

Consultation → 15 minutes