The distance in miles to the lightning may be calculated by counting the number of seconds between the flash of lightning and the sound of thunder. Divide that value by 5. 5 seconds = 1 mile, 15 seconds = 3 miles, and 0 seconds = extremely near. Keep in mind that you should count in a secure location.