calculating inverter needs