XKCD usually has solid (and often contemporary) science behind it. Lightning Difference, #2027 one says:
Q: What’s that trick for telling how many miles away lightning is?
A: Just count the seconds between the visible flash and the radio wave burst, then multiply by 5 billion.
Usually it's lightning versus thunder, and you divide the time by 5 (or thereabouts) to get the distance in miles.
Here though, light time for 1 mile (about 1600 meters) would be about 5.3E-06 seconds, and if the difference between the visible light flash and the radio burst were one five-billionths of a second (2E-10 seconds), that suggests a velocity difference of about 38 ppm.
What is the physics behind that 38 ppm difference?
