Slimmelezer and get price per kwh per hour


What I’d like to achieve: get the cost per hour for my kWhs consumed.

I have hourly electricity (through tibber, sensor.electricity_price_myprice) and a slimmelezer that can report power consumed (sensor.power_consumed).

I want to know how much did my consumption cost per hour. I.e. the kWh consumed * the price of the electricity per hour.

Any guidance would be very welcome