If you buy and then immediately sell/spend, you dont have a capital gain