; and (B) is not (and has not been) actively engaged, and is (and was) not related to a person so engaged, in (directly or indirectly) providing substantial services described in paragraph (1) for such partnership or any applicable trade or business. (d) Transfer of applicable partnership interest to related person (1) In general If a taxpayer transfers any applicable partnership interest, directly or indirectly, to a person related to the taxpayer, the taxpayer shall include in gross income (as short term capital gain) the excess (if any) of— (A) so much of the taxpayer’s long-term capital gains with respect to such interest for such taxable year attributable to the sale or exchange of any asset held for not more than 3 years as is allocable to such interest, over (B) any amount treated as short term capital gain under subsection (a) with respect to the transfer of such interest. (2) Related person For purposes of this paragraph, a person is related to the taxpayer if— (A) the person is a member of the taxpayer’s family within the meaning of section 318(a)(1), or (B) the person performed a service within the current calendar year or the preceding three calendar years in any applicable trade or business in which or for which the taxpayer performed a service. (e) Reporting The Secretary shall require such reporting (at the time and in the manner prescribed by the Secretary) as is necessary to carry out the purposes of this section. (f) Regulations The Secretary shall issue such regulations or other guidance as is necessary or appropriate to carry out the purposes of this section . (b) Clerical amendment The table of sections for part IV of subchapter O of chapter 1 is amended by striking the item relating to 1061 and inserting the following new items: Sec. 1061. Partnership interests held in connection with performance of services. Sec. 1062. Cross references. . (c) Effective date The amendments made by this section shall apply to taxable years beginning after December 31, 2017. V Business credits A General