I guess this is hard to tell since it depends on the destroyer's ability to determine the submarine's position correctly. It would be hard to know whether the destroyer has an accurate fix on the submarine.
Maybe it doesn't depend on the relative position of the two vessels, at all. Could it be that the destroyer drops its depth charges a few seconds after it loses contact with the submarine?