Can I build complex appointment logic in this API?


I am working on my project where I want to achieve critical objectives of my system.

Logic which I want to build in my System are as follows

  1.  There will be option to create different time slots dynamically in calender (e.g. I am parsing the appointment details from pre-book.php page to calender and on "pre-book" page where I already have pre-defined appointment duration 70 min so I will have time slots 9:00 - 10:10, 10:10 to 11:20 and so on. (This is what I already did)
  2. As I am going to set the appointment for the same person with another pre-defined time slots 25 min (9:00 - 9:25, 9:25 - 9:50, 9:50 - 10;15)then I require if anybody booked his/her appointment  for 70 min (10:10 - 11:20) from pre-defined time slots then time slots should come as following

9:00 - 9:25
9:25 - 9:50
9:50 - 10:10
10:10 - 11:20 (Not Available)
11:20 - 11:45
11:45 - 12:10
and so on…

Time slots should be divided by checking that time is available, even if I can remove non-available time duration from time period area of the calender while user book the appointment (This window open when I double click to set the appointment)

Please let me know if you have some idea how I can achieve this?

Thanks for for your reply.

----Saurabh :slight_smile: