Do capital gains affect tax credit claims?