Adding a sum of 2 sensor states directly in Lovelace, possible?

So I have the following in a lovelace card :

es: |
        [[[
          return `<ha-icon icon="mdi:calendar-blank"
            style="width: 18px; height: 18px; color: #7CB342;"></ha-icon> 
             M <span style="color: var(--text-color-sensor);">
            <b>  ${states['sensor.freezercost_total'].state}€</b>
            <ha-icon style="width: 18px; height: 18px;" icon="mdi:arrow-right"></ha-icon>
            ${states['sensor.geladeira_energy_spent'].state + states['sensor.freezer_energy_spent'].state}kWh</span>`
        ]]]

ALthough this doesn’t give me an error it adds the value this way :

0.990.99 KwH

I am trying to make a sum of these 2 sensors directly in lovelace to avoid adding a bunch of other template sensors in my config, not sure if this is possible though ?

If it’s possible would like to know the correct formating for this

Anyone can shed some light ?

Thanks