Santos Torres was kind enough to put this flow chart together for us for one of the AIM Users meetings at the beginning of the New Millennium. Look about half way down the page.
If you follow Toms link , there is a link to the QUICK AIM CALCULATOR. The software is public and when I have put it in e mail I can see the code. The ( A ) formular is in there somewhere.