(a) where the taxpayer is the only person who has received an amount under section 3, the lesser ofi. the aggregate of all amounts so received by the taxpayer in the year, and
ii. the amount, if any, by which $10,000 exceeds the aggregate of all amounts received by the taxpayer in preceding taxation years upon or after the death of the employee in recognition of the employee’s service in an office or employment;
(b) in all other cases, the lesser ofi. the aggregate of all amounts so received by the taxpayer in the year, and
ii. such proportion of $10,000 as the aggregate described in subparagraph i is of the aggregate of all amounts received by all taxpayers at any time upon or after the death of the employee in recognition of the employee’s service in an office or employment.