prime cost calculation