Electrical resistors calculation with color code