complete Calculation powerinverter and circuit system