Templating Two Sensors

How can I combine two sensors similar to the one in the picture.

Tried this and other variants but nothing…
‘{{ ((states.sensor.kettle_monthly_cost.state | float) + (states.sensor.water_heater_monthly_cost.state | float)) | round(1) }}’

I assume the problem is the ‘$’ in front of the number.
Maybe try it with:

states.sensor.water_heater_monthly_cost.state.replace('$', '') | float

You can play with it in Dev Tools/templates.

Thanks. Yeah I have been playing around in dev tools.
It is the $.
Completely forgot about it!!!