This is a really newbie question, but when do you pay taxes on stocks' gains? Is it immediately upon the sale, or is it when you file taxes at the new year? So, theoretically, you could sell 1/2 of your stock in November, then sell more in the following January to pay the taxes owed from the first batch?