Virtual Device Calculation from W to kWh

You should be able to do what you want with this: