OH3 Rules DSL Calculation for kWh - UoM?

Found solution here.