You will be required to pay capital gain tax on the total amount that is not used if you are unable to use the proceeds in CGAS for the specific purchase. This will be the case in the year that the proceeds expire and will be regarded as long-term capital gain.