Here you can calculate the Distance from Lightning from of the speed of the sound. The seconds will be counted from the flash of the lightning till the sound of the thunder. The sounds travel about 1100 to 1200 feet/sec. Here the default will be 1150. Free Lightning distance calculator online.
Here you can calculate the distance of Lightning. Calculating weather is made easier.