The cost of developing a cost function