What an incorporated Canadian keeps under different compensation splits, and what each route costs in RRSP room and CPP.
Rates are yours to set because they depend on your province and income level. The corporate rate is the small-business rate on active income; the dividend rate is your effective rate after the dividend tax credit. Salary is treated as deductible to the corporation, so only the remainder is taxed corporately and then paid out as a dividend.
Salary is deductible to the corporation, so it never gets taxed corporately, only personally. Dividends are paid out of income the corporation has already paid tax on. The calculator applies that ordering: salary comes off first, the remainder is taxed at the corporate rate, and what survives is paid as a dividend and taxed personally again.
That is why the two routes differ at all, and why the answer depends on the relationship between three rates rather than on any one of them.
Corporate and personal tax rates vary by province and by income level, and the effective rate on dividends depends on whether they are eligible or non-eligible and on the dividend tax credit that applies. A calculator that assumed one set of rates would give a confidently wrong answer to most of the people using it.
Reasonable starting points: the small-business corporate rate in most provinces sits in the low double digits, and your personal average rate on salary is lower than your marginal rate, being total tax divided by total income, not the rate on your last dollar.
These omissions are deliberate: adding them would require assumptions about your province, your corporation's investment income and your lender. They are exactly the factors that make the real decision worth talking through.
The calculation is covered by a test suite that asserts against hand-worked cases, including that an all-salary payout leaves no corporate income to tax, that dividends generate no RRSP room, and that a zero-profit corporation produces zero rather than a negative number. The tests run before every commit.