Tax law generally requires any excess contributions to retirement accounts be withdrawn by April 15th of the year following the tax year, along with related earnings. For IRA's, how the related earnings is calculated is based on Regulations
1.408-11 and
IRS Notice 2000-39