HOW DO INVERTERS CALCULATE CURRENT