After you file

You are correct but remember that the capital gain is included in income when calculating taxable income.