Get your taxes done using TurboTax

the proper amount to withdraw is the amount of the excess.

you ask the custodian to do the calculation of earnings. using their "removal of excess plus earnings" form.

the proper amount to enter  as withdrawn into TurboTax,if asked, when you have a loss is the amount of the excess.

 

the proper amount to report on your tax return If you want the retirement savings contribution credit, is your reduced contribution amount that is no longer in excess.

 

Here, I'm just rephrasing what I stated above.

@taxes4739