This gives you a rough idea of how many kilometres away the thunderstorm is. If you wait a few minutes and do this calculation again, you can check whether the storm is coming closer or moving away from you. The idea behind this is that the sound travels one kilometre in around three seconds.