Close Approach to Other Gravity Wells
Ships have two speeds: Lets call them Travel Speed and Tactical Speed. (Warp and Impulse for you Trekkies needing a familiar yardstick to compare to.)
In the nature of Phantasy Physics, the approach of a ship under power to another gravity well drops it from Travel speed (100 million miles per day, regardless of ship type) to travel Speed( based on ship type, but generally in the 1MPH to 8 MPH range).
In 3e this was initiated at 25 hexes, but the slowing down period put actual encounter distance at anywhere from 11 to 20 hexes. Keep in mind that, back hen, a hex was 500 tards, or .25 nautical miles. Of course, weapon ranges were much greater back then, at least for Space combat. Gravity is no longer the deciding factor: Time to target is, which makes a certain amount of sense.
Now, 5e leaves it up to the DM with 3 recommended ranges. I split the difference and use Ship's speed. You will drop from Travel to Tactical speed at 1d10+10 rounds of movement. It's 5e, so simple wins out over crunch/logic. Faster ships slow down farther away. Keep in mind that this is based solely on your speed, and you may be much closer (or farther) in time to the other object depending on it's speed, and whether it decides to close, run away, or wait.