(b) where any person has a right to a deferred amount under that arrangement, an amount received by the person as a benefit at any time out of or under the plan is deemed to have been received out of or under that arrangement except to the extent that it exceeds the amount by whichi. the aggregate of all deferred amounts under that arrangement that were included under section 37 as benefits in computing the individual’s income for taxation years ending before that time exceeds
ii. the aggregate of all deferred amounts received by any person before that time out of or under the plan that were deemed by this paragraph to have been received out of or under that arrangement, and all deferred amounts under that arrangement that were deducted under section 78.2 in computing the individual’s income for the year or a preceding taxation year.