(1) A is the lesser of(a) the total (in this section referred to as the “total tax charged in respect of the immovable”) of the tax that was payable by the person in respect of the last acquisition of the immovable by the person and the tax that was payable by the person in respect of improvements to the immovable acquired or brought into Québec by the person after the immovable was last so acquired, and
(b) the tax that is or would, but for sections 75.1 and 80, be payable in respect of the taxable supply; and
(2) B is(a) where the person was entitled to claim a rebate under sections 383 to 397 in respect of any tax included in the total tax charged in respect of the immovable, the difference between 100 % and the percentage prescribed for the purposes of section 386 or 386.1 that was applicable in determining the amount of that rebate, and
(b) in any other case, 100 %.