DF#QCADOOMES-1926 Fixed problem with cost calculation.