2027 - Lightning Distance

The index of radio refraction does have a lot of variation, which might throw off your calculations, so you can also look at the difference in brightness between the visible flash and more-attenuated UV and x-rays.

This is an archival copy of the works from xkcd.com.