The Mechanics of 7872
1.    Code: 7872(a)-(f)
2.    Reg: Prop. Reg: 1.7872-1, 1.7872-2, 1.7872-4
3.    The first step in statutory analysis is to determine whether the transaction is a loan.
a.    The proposed Reg defines a “loan” as:
i.    an extension of credit in any transaction where one person transfers money to another for any period of time after which it is to be retransferred to the owner or applied accordingly to an express or implied agreement with the owner (1.7872-2(a)(1).
1.    each extension of credit or other transfer of money is treated as a separate loan (1.7872-2(a)(3)
4.    The second step is to determine whether the loan is below market loan.  This focus on whether or not the loan is a term loan or a demand loan.
a.    A demand loan is a below market loan if the interest rate payable on the loan is less than the applicable federal rate.  The applicable federal rate for demand loans is the federal short term rate compounded semiannually in effect under 1274(d) for the period during which the forgone interest is being compounded.
b.    A term loan is below market (7872(e)(1)(b)) if the amount loaned by the lender exceeds the present value of all payments (including principle and interest) to be made by the borrower under the terms of the loan.
5.    7872(c) then determines whether it is the  type of a below market loan to which 7872 applies.  There are six categories of 7872 loans:
i.    gifts
ii.    compensation related loans
iii.    corporations shareholder loans
iv.    tax avoidance loans
v.    a catch all category  which includes all other below market loans in which the below market interest rate arrangement significantly affects the tax liability of either the lender or the borrower and
vi.    qualified continuing care facility loans
6.    if 7872 applies, consider whether an applicable de minimis exception exempts the loan for the coverage of 7872, there are two:
a.    gift loans
i.    gift loans are exempted if
1.    the aggregate outstanding amount of the loans b/w the lender and the borrower does not exceed $10K &
2.    the loan proceeds were not used by the borrower to purchase or to carry income producing assets
b.    compensation related and corporation shareholder loans are exempted
i.    for any day on which the aggregate outstanding amount of the loans b/w lender and borrower do not exceed $10K and
ii.    if the principle purpose of the loan was not tax avoidance
7.    If the de minimis exception does not apply to the below market loan, ten 7872(a) and (b) govern the tax consequences.
a.    See page 261 for the break down of the mechanical application of 7872 and example.
8.    Kta-Tator Inc. v. Commissioner (1997):
a.    See in book