Taking money out of a tax-advantaged account such as an individual retirement account isn’t always as simple as it seems.…