Look at the formula by Dan Schwartz here and on his web site in what is probably that other thread. Dan's last version was very close.

PE