Exclude weekend and work times from Gantt Chart

Hello, I would like my Gantt Chart to take into consideration that tasks between X:XXAM and X:XXPM are only permitted, or else delayed on the next day and so on while excluding the weekends.

The Workday (startDate, numWorkingDays, holidays) formula works well, but does not include time which is extremely useful considering the condition i’m asking above(between working hours).

How would I manage this, dynamically ?

Exactly this post, but with a solution for Gantt charts.