If my taxable income is over the maximum for avoiding capital gains tax (@$52,000) will I have to pay capital gains tax on all of the gain or just on the marginal amount