Incorrect. You will pay the taxes when you file at the end of the year based on that years income, which would include the $500k