The rule of thumb I have been taught is that the image circle is approximately 3.5x the distance from the pinhole to the film plane, so divide the diagonal of your format by 3.5 and you should have the shortest distance you can use without losing the edges completely.