Thanks for your help! I’m getting the following error after enabling advanced in the Twig extension and using your suggest code:
An opened parenthesis is not properly closed. Unexpected token "punctuation" of value ":" ("punctuation" expected with value ")") in "${{ (dc:looper:field('road_trip_cost') - dc:looper:field('shipping_cost')) | number_format(2, '.', ',') }}
I also tried the following which didn’t cause an error but broke the calculation and didn’t add a comma as intended. The output was simply substracting 1 from the first field rather than pulling in the actual value of shipping_cost.
${{ {{dc:looper:field key="road_trip_cost"}} - {{dc:looper:field key="shipping_cost"}} | number_format(2, '.', ',')}}
Removing the math operator and second filed as follows outputs the number correctly so it’s just the math portion that seems to be tripping things up. Results of below takes “3150” and outputs “3,150”
${{ {{dc:looper:field key="road_trip_cost"}} | number_format}}