Get your taxes done using TurboTax

If the $5270 represents the entire balance of your IRA account then in the program do NOT enter the $7K contribution at all.  OR you can enter it but you will also indicate you removed the entire 7K.  Either way you are covered.