Get your taxes done using TurboTax

> we have no way of knowing whether the amount you withdrew conforms to the [NIA calculation] above.

 

The brokerage provides a "Removal-of-Excess Form", with a checkbox to have them calculate the earnings per the NIA formula. I used that. In other words: I didn't manually calculate the NIA, I only told them the amount of excess contribution, and TD Ameritrade calculated the earnings/loss & determined the final value of shares to remove.