Hello,
This matrix should be more accurate. Let me know if there are any problems you see.
http://www.devx.com/dbzone/Article/29480
Sincerely,
Joshua D. Drake