From what I understand the algorithm for it is really complicated, The one UPS developed is one of the best ones out there and it still can't account for all of the variables.
Never argue with an idiot, they will drag you down to their level and beat you with experience. Winston Churchill
This is CABL.com posting #359268. Tiny Link: cabl.co/mbFCO