Energy Tracking - CT Clamp Current Sensor

Have a look at post 24 here, your need you use return x