public static double GetPowerByCurrentResistance(double amperes, double ohms) { return (amperes*amperes)*ohms; //W = I2 x R }