This calculation is based on the formula I found in this forum post. I have no idea how accurate it is. Please contact me by mail if you have a better formula.