Time interval between Flash and Thunder

The lightning formula is dependent on the distance at which lightning happens, the speed of sound in the air, time interval between flash and thunder.