How can I calculate the basis when I withdraw 2016 and 2017 RMD in 2017?