How is a project percentage worked out?

Hi,
I was wondering how your project percentage was worked out.
I want to get the project percentage without calling. getPercentCompleted
I have tried (task duration / project duration) * task percent
Cheers

Hi,
Anyone know what the equation is for the project percentage?

Perhaps its a trade secret…

I thought you could look into the sources, anyway it’s not a secret - it takes a sum of root level tasks percent completed and divide it by the number of those tasks.

Thanks Fedor the source was a little on the confusing side for me.