My formula is not adding

I don’t know why the values ​​don’t add up, just do subtraction I’ve tried everything and it doesn’t work is it a bug?
IF(appVars.valordoboleto.data.value == undefined, “–”, appVars.valordoboleto.data.value - appVars.desconto + appVars.jurosmulta)

Is everything of Number type?

yes they are numeric

only subtraction is working, sum not working

Then try using the built in math formulas:

ADD(firstnumber, secondnumber)

or wrap the subtraction into a bracket and also the full calculation into a bracket:

IF(appVars.valordoboleto.data.value == undefined, “–”, ((appVars.valordoboleto.data.value - appVars.desconto) + appVars.jurosmulta))

you alerted me and I had this idea that worked perfectly thanks!
IF(appVars.valordoboleto.data.value == undefined, “–”, NUMBER(appVars.valordoboleto.data.value) - NUMBER(appVars.desconto) + NUMBER(appVars.jurosmulta))