first we must know the resistivity of a 22 gauge american wire gauge copper wire, which is about 52.7 ohm / 1000 m or 16.14 ohms / 1000 ft
resistance = resistivity x length
length = resistance / resistivity
length = 500 ohms / ( 52.7 ohm / 1000 m )
length = 9488 m