The effect on firm's profit of cost misallocation