To calculate the distance from lightning, follow these four simple steps: look for flashes in the sky, count the number of seconds you hear the storm, then divide the duration by three to get the result in miles.