How far away was that lightning? Here's how to figure it out.

Light speed is almost instantaneous, while sound is much slower.