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)