There is more mathematics involved in that problem than I can digest, for lack of time.  Link