Calculation of fund performance

pts.
Tags:
RPG
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% ----------- NAVa 1/n is square root Where, for the purposes of this formula only, the following terms have the meaning indicated: Term Meaning 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 :

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi

If I’ve read the formatting of the formula correctly, the following RPG IV/ILE code should work for you:

* Ensure “n” is a minimum 1 year…
C If n < 1
C Eval n = 1
C EndIf

* Calculate the Fee Adjustment…
C Eval FA = D / (U + V)

* Calculate the Fee Adjustment…
C Eval Result = (((NAVb – FA) **n) *100) / NAVa

All the best

Jonathan

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following