The figures I’ve seen for active sonars have been surprisingly low. For instance the ‘Ros’ dipping sonar on the Ka-28 helos can only detect submarines for 3-5km. Even the best figures I’ve seen are only for 50km or so. I suspect the limitations of sonar technology are why submarines are so hard to detect, although to be fair it’s not easy to obtain specs about sonar range on the internet.