Hello, Rich --
I've got a spreadsheet I made that might help you. It's based on formulas in Rudolf Kingslake's book
Lenses in Photography. I see that .zip and text formats are no longer allowable as attachments, but you can download it from this link:
http://homepage.mac.com/jlw/temp/lens_extension_wksht.zip
The part that ties in to what you want to do is the table at the bottom. It's based on a test photo made at an intended focusing distance of 1000 mm. Common lens focal lengths are listed down the left side, and actual best-focus distances are in columns across the top. The idea is that you'd photograph an angled ruler with its midpoint 1000 mm from the image plane, then look at the photo to determine the actual best-focus distance (remember to compensate for the angle of the ruler.)
For example, suppose you're using a nominal "50mm" lens (actual focal length according to Leica lore of 51.6mm) and you find your actual best-focus distance is 992 mm instead of your intended 1000 mm.
This means your lens is "front-focusing" (focusing in front of the intended target) by 8 mm, which in turn means that the optical section is extended too far relative to the rangefinder cam (since closer focusing distances require more extension.) The table tells you that to correct this condition, you need to move the optical section backward by 0.03 mm, which you'd do by thinning the shim by this amount.
(Actually, if you download the table, you'll notice that the same correction is given for 990 mm and 992 mm, which might make you wonder how careful I was in setting up the table. Keep in mind, though, that commonly-available measuring instruments aren't going to read out any finer than the nearest 1/100 of a mm, so I figured that carrying everything out to four or five decimal places would be "wasted precision" and just rounded the numbers off to the nearest 0.01 mm.)
WARNING! Because of this rounding, and also because I used a shorter formula that Kingslake described as good approximation, rather than an extremely long formula that's more precise, there's no guarantee that these values are
exactly correct! USE AT YOUR OWN RISK!
Since it's a lot easier to remove material from a shim than it is to add it back, I recommend thinning the shim gradually until it starts to get
close to the value in the table, then check frequently and "sneak up" on the thickness that gives the best results -- rather than removing the full amount all at once!
The table has given good results for me in zeroing in some of my Canon screwmount lenses for use on my R-D 1 camera body, but again, there's no guarantee on this data, so you're on your own!