calculates and returns the duration of project in hours
var project = ganttChart.getProjectById(2); var projectHours = project.getDuration();