Live power calculation

Hello there, i’ve made a little power meter with the PZEM-004T V3.0 and it works very well, now i would like to create a card that uses the energy meter (Wh) and calculates the price of the electricity how can i do that? all it needs to do is to multiply the energy (Wh) by my energy cost (0.7cent/Wh) and give me the output on a card.
Thanks

Any card that supports a value template would do.
For all my custom cards i personally use Fun with custom:button-card

Solved it!
I just added this to configuration.yaml :slight_smile:

 sensor:
  - platform: template
    sensors:
      qlima_power_bill:
        friendly_name: Qlima power bill
        value_template: "{{ (states('sensor.energy') | float * 5000) | round(0) }}"