Allocating and managing the costs of a production