The IRS documentation says upon any withdrawal the adjusted vesting calculation would be either of
(1) X = P (AB + [R x D]) - (R X D)
X is vested interest at relevant time.
P is vested percentage at relevant time.
AB is account balance at relevant time.
D is amount of the distribution.
R is the ratio of the account balance at the relevant time over the account balance after distribution.
(2) or X = P (AB+D) - D
The difference is, in 2nd formula the value of R is 1.
My question is when we can use formula 1? Under what circumstances we need to use formula 1? Any thoughts.