Calculate Project Programmatically using C#