(a) subject to the second paragraph, 30% of the particular amount that is the amount by which the least of the following amounts exceeds the particular amount determined for the calendar year in accordance with subparagraph a.1:i. the amount by which the aggregate of all amounts each of which is the salary or wages paid by the qualified corporation to an employee in respect of a pay period, within the calendar year, for which the employee is an eligible employee exceeds the aggregate of all amounts each of which is,(1) except in respect of a corporation that results from an amalgamation, an amount equal to zero, where, at no time in its base period, the corporation carried on a business in Québec in the sectors of activity described in a qualification certificate issued, for the purposes of this division, to the corporation for the year in respect of a recognized business, and
(2) in any other case, the aggregate of all amounts each of which is the salary or wages that were paid by the corporation to an employee in respect of a pay period, within its base period, for which the employee is an eligible employee,
ii. the amount by which the aggregate of the qualified corporation’s eligible amount for the calendar year and the aggregate of all amounts each of which is the salary or wages paid by another corporation with which the qualified corporation is associated at the end of the calendar year to an employee who reports for work at an establishment of the other corporation situated in Québec, where the salary or wages are paid in respect of a pay period, within the calendar year, throughout which the employee spends, when at work, at least 75% of the time in undertaking, supervising or supporting, in an establishment of the other corporation situated in Québec or elsewhere, but in connection with the mandates attributable to such an establishment, work that is directly related to the activities of the other corporation that are described in a qualification certificate issued, for the purposes of this division, to the qualified corporation for the year in respect of a recognized business, exceeds the total of(1) the qualified corporation’s base amount, and
(2) the aggregate of all amounts each of which is the salary or wages paid by another corporation with which the qualified corporation is associated at the end of the calendar year to an employee who reports for work at an establishment of the other corporation situated in Québec, where the salary or wages are paid in respect of a pay period, within the qualified corporation’s base period, throughout which the employee spends, when at work, at least 75% of the time in undertaking, supervising or supporting, in an establishment of the other corporation situated in Québec or elsewhere, but in connection with the mandates attributable to such an establishment, work that is directly related to the activities of the other corporation that are described in a qualification certificate issued, for the purposes of this division, to the qualified corporation for the year in respect of a recognized business, and
iii. the amount by which the qualified corporation’s eligible amount for the calendar year exceeds the qualified corporation’s base amount; and
(a.1) 40% of the particular amount that is the least of i. the amount by which the aggregate of all amounts each of which is the salary or wages paid by the qualified corporation to an employee in respect of a pay period, within the calendar year, for which the employee is an eligible employee, to the extent that the salary or wages may reasonably be attributed to activities referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1, exceeds the aggregate of all amounts each of which is(1) except in respect of a corporation that results from an amalgamation, an amount equal to zero, where, at no time in its base period, the corporation carried on a business in Québec in the sectors of activity described in a qualification certificate issued, for the purposes of this division, to the corporation for the year in respect of a recognized business, and
(2) in any other case, the aggregate of all amounts each of which is the salary or wages paid by the corporation to an employee in respect of a pay period, within its base period, for which the employee is an eligible employee, to the extent that the salary or wages may reasonably be attributed to activities referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1,
ii. the amount by which the aggregate of the amount that would be the qualified corporation’s eligible amount for the calendar year if, for the purposes of the definition of "eligible amount" in the first paragraph of section 1029.8.36.72.82.1, only the portion of the salary or wages of an employee that may reasonably be attributed to activities referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1 were considered, and the aggregate of all amounts each of which is the salary or wages paid by another corporation with which the qualified corporation is associated at the end of the calendar year to an employee who reports for work at an establishment of the other corporation situated in Québec, where the salary or wages are paid in respect of a pay period, within the calendar year, throughout which the employee spends, when at work, at least 75% of the time in undertaking, supervising or supporting, in an establishment of the other corporation situated in Québec or elsewhere, but in connection with the mandates attributable to such an establishment, work that is directly related to the activities of the other corporation that are described in a qualification certificate issued, for the purposes of this division, to the qualified corporation for the year in respect of a recognized business and that are referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1, exceeds the total of(1) the amount that would be the qualified corporation’s base amount if, for the purposes of the definition of "base amount" in the first paragraph of section 1029.8.36.72.82.1, only the portion of the salary or wages of an employee that may reasonably be attributed to activities referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1 were considered, and
(2) the aggregate of all amounts each of which is the salary or wages paid by another corporation with which the qualified corporation is associated at the end of the calendar year to an employee who reports for work at an establishment of the other corporation situated in Québec, where the salary or wages are paid in respect of a pay period, within the qualified corporation’s base period, throughout which the employee spends, when at work, at least 75% of the time in undertaking, supervising or supporting, in an establishment of the other corporation situated in Québec or elsewhere, but in connection with the mandates attributable to such an establishment, work that is directly related to the activities of the other corporation that are described in a qualification certificate issued, for the purposes of this division, to the qualified corporation for the year in respect of a recognized business and that are referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1,
iii. the amount by which the amount that would be the qualified corporation’s eligible amount for the calendar year exceeds the amount that would be the qualified corporation’s base amount if, for the purposes of the definitions of "base amount" and "eligible amount" in the first paragraph of section 1029.8.36.72.82.1, only the portion of the salary or wages of an employee that may reasonably be attributed to activities referred to in any of paragraphs a to d of the definition of "eligible region" in the first paragraph of section 1029.8.36.72.82.1 were considered, and
iv. the lesser of the amounts determined for the calendar year in accordance with subparagraphs i to iii of subparagraph a; and
(b) the aggregate ofi. 40% of the portion of the eligible repayment of assistance of the qualified corporation for the taxation year that may reasonably be attributed to an amount paid in the year and referred to in any of paragraphs j.1, k.1 and l.1 of the definition of "eligible repayment of assistance" in the first paragraph of section 1029.8.36.72.82.1, and
ii. 30% of the amount by which the eligible repayment of assistance of the qualified corporation for the taxation year exceeds 100/40 of the amount determined for the year in accordance with subparagraph i.