how do i calculate fields of a project
Have a look at the range of scripting and automation apps available in the marketplace. Some offer simple but limited calculated fields, some allow much more powerful calculations and functions like being able to add fields in places the more simple ones can't.