I got the formula from this pokerstars page, but there is no guarantee that this calculator is accurate.