How to calculate service time?

Hello,

I would like to know how to have the possibility for the client to choose the duration of the service when booking a date?

Ex: Client select massage type, ten when choosing a date and hour he can select the duration.

Best regards,