There are quite a few ways that this could be implemented. The cost could be determined by fuel expenses (if there is no fuel scoop on the ship, of course), plus a driver/handlers fee.
It could also be implemented that if your ship is unable to make a jump, then it could only be brought so close to your current location. Unless some kind of freighter that can carry ships is brought into play.
Various, different priced options could be the best way to implement it, with varying degrees of risk involved.