https://blog.aspose.com/2012/03/07/calculate-critical-path-duration-or-resource-assignment%E2%80%99s-time-phased-data-and-render-project-to-stream/
Calculate critical path, duration or resource assignment’s time phased data and render project to stream