wbt_cost_allocation function

Cost allocation