how far away lightning
The delay between when you see lightning and when you hear thunder occurs because sound travels much, much slower than light. Sound travels through air at about 1100 to 1200 feet per second (our default is 1150). That is a little more than one mile per five seconds. This approximation will give you a good idea of how far away the lightning was.