Calculation of fund performance
The rate of return of the fund, or for a particular class of the fund, over the respective periods specified in D2.3(f) of the Code should be calculated to two decimal places in the following manner:
Rate of return for the measurement period from point !Ya!|to point b!|(%)= (NAVb - FA)1 / n -1]x100%
1/n is square root
Where, for the purposes of this formula only, the following terms have the meaning indicated:
NAVa The net asset value per unit of the fund at point !Ya!|, the beginning of the measurement period.
NAVb The net asset value per unit of the fund or each unit of a class of the fund in Hong Kong dollars at point !Yb!|, the end of the measurement period.
FA An adjustment for any fees or charges deducted from members!| accounts by way of deduction of units, if those fees or charges would be counted as expenses of the fund if deducted directly from the fund. The adjustment should be calculated on a per unit basis in accordance with the formulaFA = D /( U + V)Where:D = the value of any fees and charges deducted by way of deduction of units during the period from point !Ya!| to point !Yb!|U = the number of units outstanding at point !Yb!|V = the number of units deducted as fees or charges during the period from point !Ya!| to point !Yb!|
n The number of years in the measurement period from the beginning at point !Ya!| to the end at point !Yb!|. Where the number of years in the measurement period from point !Ya!| to point !Yb!| is less than 1, n equals 1.
Do any one know how to handle below formula using RPG or else method which can be implement on AS400 RPG program :