One of the most accurate ways to determine what it costs a company to produce a given product or service is using an activity-based costing model. The below Excel template is a great starting framework for businesses to use in order to better understand their cost per unit. I had to delve back into my cost accounting days on this one.