A costing framework and cost allocation