(a) the proportion resulting from the product obtained by multiplyingi. the proportion that its port-call-tonnage in Canada is of its total port-call-tonnage, by
ii. the proportion that its port-call-tonnage in Québec is of its total port-call-tonnage in all the provinces in which the corporation has an establishment; and
(b) where its port-call-tonnage in all countries exceeds its port-call-tonnage in Canada, the proportion resulting from the product obtained by multiplyingi. the proportion that that excess is of its port-call-tonnage in all countries, by
ii. the proportion that the salaries and wages paid by the corporation to the employees of its establishment in Québec, with the exception of those paid to employees working on ships, is of the salaries and wages paid by the corporation to employees of its establishments in Canada, with the exception of those paid to employees working on ships.