I usually find the track of the target , and plot a course to 5-700m off the track at 90 degrees, and sit there, periscope just under the surface, listening on my hydrophone until the angle is right, then peek and fire at the last moment.
After reading this, it seems what I'm doing is wholly unrealistic.