(a) the amount of any outlay or expense incurred in respect of the property to the extent that the outlay or expense constitutes an expense incurredi. by a person, including a partnership, pursuant to an agreement entered into with the operator or another corporation or partnership, under which the person incurs such expense solely as consideration for a share of the capital stock of the operator or of another corporation or partnership, for an interest in a partnership, or for an interest or right attaching to the share or interest; or
ii. by a corporation, including the operator, where a share of the capital stock of the corporation was issued to a person, including a partnership, pursuant to an agreement in writing entered into between the person and the corporation, under which the corporation, for any purpose, agreed to incur such expense and to renounce to the person an amount in respect of the expense so incurred by the corporation not exceeding the consideration received by it for the share;