You should apply for the tax credit when you are presenting the Americanincome for assessment in India.You can show it proportionately or the entire income in the India AY.