In the presented definition, while Vf is the final value, Vi is the basis, which is not necessarily the initial value. For instance, the basis can be increased beyond the initial value by further investment during the preiod. (Sales during the fundamental period do not decrease its basis.)
If the full value of the additional investment in the fundamental period is not taken into account (as is sometimes done by using the modified Dietz approach within a fundamental period) then the general formula thus arrived at will not make economic sense, as can be easily seen in cases where the initial value is zero.