If you're in a city, buildings attenuate a lot of sounds. That's something that is much to complex to really factor in. In more open country, I've heard gunshots that I know were several miles away quite clearly.


The important point is that you'll almost certainly not hear it at all before it becomes quieter than "people talking" (DC0).