Our goal is to calculate a general measure for an finance account, it is similar for a fund price NAV (Net Asset Value)
Balance equation
where A = Assets L = Liability C = Capital D = Drawing I = Revenue E = Expense
and we defined (Equity), (Net drawing) and (Result)
Differance
In countinues case we have
→ →
,→ →
→
Now
To handle sampled data we have work with difference
and
Now
(A)
or
(B),
We have
,
and we get
(1)
and start with
,
(2)
and
So if the we use (1) else (2)
If and the we set
,