Populate a property with the sum of a property on associated records

We need to be able to sum the total of a custom deal field (revenue billed to date) on the company record to be able to calculate company margin on all deals.