calculate project weight by cost