DF#QCADOOCLS-2085 productionCountingWithCosts: fix ArithemticException