Retirement tax questions

Are you saying that she can keep the earning from 2020-2022 in the Roth account?

But she has to remove the earning for 2023, is that correct?

 

So the 10% penalty is for which year's earning?