tpr function

Function to calculate maximum resource demands of a project.