The app takes into consideration capital gains because it knows not only the value of your investments but also their book value (cost basis). Make sure you enter accurate book values for your non-registered investments.
The TIME MACHINE grows your investments with separate rates of growth you enter for dividends, foreign and eligible for the dividend tax credit, (which you can set to be reinvested or not) and capital growth. It also adjusts the book value as necessary with any deposits or withdrawals. So for taxes, it knows how to treat the capital gains, foreign dividends and eligible dividends.
You can see some details of your investment growth and taxation in the detailed reports.
A popular thing to do for non-registered withdrawals starting at retirement, is to set an AUTOMATIC Withdrawal of all dividends/distributions from any account you want.