Retirement tax questions

More info...

 

In TurboTax, I found a box where I can report how much excess contribution was withdrawn.  But, if I don't report the full $1500 as withdrawn, I will owe the penalty and going forward I will continue to owe a penalty.

 

Yet, the actual amount withdrawn was less than $1500, due to the change in value of the investment.

 

So, how do I handle this?