The distance of a thunderclap from the lightning bolt can be estimated by counting the seconds between the flash of lightning and the sound of thunder. This is because light travels much faster than sound. The speed of light is approximately 299,792 kilometers per second, while the speed of sound is approximately 343 meters per second. So, for every second that passes between the flash of lightning and the sound of thunder, the lightning is approximately 343 meters away.
Lightning is the name for the bright flash of light produced by an electrical discharge between clouds, or between a cloud and the ground. It occurs during thunderstorms when the electrical charge builds up between the clouds, or between the cloud and the ground. The sound of thunder is caused by the rapid heating of the air around the lightning bolt.