Bitrix24. Deals with working hours

Study the processing time of each deal, taking into account the working time. Analyze the working time per deal by the custom fields of the deal. Build graphs depending on the success of the deal from the time of its processing.
Click "Show SQL after loading" If you want to see SQL editor. See the details here (3)
Select "Next".
Select user fields in the Bitrix24.
Working hours = time between downloads and date of creation of deals.
Worting hours set in the Calendar (see here).