How to calculate the project cost