Those costs include both the direct costs of [producing] such property -- e.g., the amount the taxpayer had to spend to produce the property, such as buying parts or production equipment -- and "such property's proper share of those indirect costs . . . part or all of which are allocable to such property.