The distance in miles to the lightning can be calculated by counting the number of seconds between the flash of lightning and the sound of thunder, then dividing by 5. 5 seconds equals one mile, 15 seconds equals three miles, and 0 seconds equals very close. Keep in mind that you should count in a secure location.