Well that's a problem.
The answer depends on the speed of the sonar signal through the water, but the speed of sound in seawater is not a constant value. It varies by a few percent from place to place, from season to season, from morning to evening, and also with the depth of the water.
I'll use the round figure of 1,500 m/s just to show how to handle the problem.
Traveling at an average speed of 1,500 m/s for 3.2 seconds, the ping of the sonar covers
(1,500 m/s) x (3.2 sec) = 4,800 meters
But that's <u>not</u> the distance to the object that reflects the ping back.
Don't forget that the sound had to cover the distance <u>twice</u> . . . once from the sub to the target, and then RETURN to the sub. So the actual distance from the sub to the target is half of that.
<em>Distance</em> = (4,800 meters / 2) = <em>2,400 meters</em> .