51. An overpayment is established for a year subsequent to the year 2012 where, for the year, the aggregate of the deductions at source by one or more employers, under this Act or under a similar plan, from the salary and wages of an employee who is resident in Québec at the end of 31 December of that year or, if the employee died in the year, was resident in Québec on the date of the employee’s death, exceeds the aggregate of(a) an amount equal to the product of the base contribution rate for employees for the year under the similar plan and the lesser ofi. the amount by which the aggregate of all amounts each of which is the employee’s pensionable salary and wages for the year in respect of pensionable employment under the similar plan exceeds the proportional share of the employee’s personal exemption for the year under the plan, and
ii. the proportional share of the employee’s maximum contributory earnings for the year under the similar plan;
(b) an amount equal to the product of one-half of the base contribution rate for the year and the lesser ofi. the amount by which the total of the aggregate of all amounts each of which for the year is the employee’s pensionable salary and wages, pensionable self-employed earnings and pensionable earnings as a family-type resource or an intermediate resource, exceeds the amount by which the employee’s personal exemption for the year exceeds the proportional share of the employee’s personal exemption for the year under the similar plan, and
ii. the amount by which the employee’s maximum contributory earnings for the year exceed the lesser of the amounts described in subparagraphs i and ii of subparagraph a;
(c) an amount equal to the product of the first additional contribution rate for employees for the year under the similar plan and the lesser of the amounts described in subparagraphs i and ii of subparagraph a;
(d) an amount equal to the product of one-half of the first additional contribution rate for the year and the lesser of the amounts described in subparagraphs i and ii of subparagraph b;
(e) an amount equal to the product of the second additional contribution rate for employees for the year under the similar plan and the lesser of the following amounts:i. the amount by which the aggregate of all amounts each of which is the employee’s pensionable salary and wages for the year in respect of pensionable employment under the similar plan exceeds the proportional share of the employee’s maximum pensionable earnings for the year under the similar plan, and
ii. the amount by which the proportional share of the employee’s additional maximum pensionable earnings for the year under the similar plan exceeds the proportional share of the employee’s maximum pensionable earnings for the year under the similar plan; and
(f) an amount equal to the product of one-half of the second additional contribution rate for the year by the lesser of the following amounts:i. the amount by which the total of the aggregate of all amounts each of which for the year is the employee’s pensionable salary and wages, pensionable self-employed earnings and pensionable earnings as a family-type resource or an intermediate resource exceeds the amount by which the employee’s maximum pensionable earnings for the year exceed the proportional share of the employee’s maximum pensionable earnings for the year under the similar plan, and
ii. the amount by which the employee’s additional maximum contributory earnings for the year exceed the lesser of the amounts described in subparagraphs i and ii of subparagraph e.