AnnualizedReturn function query

Can we pass an extra parameter to the AnnualizedReturn function? It only has endDate and not the startDate because of which I’m having a problem to calculate return using formula. Am I approaching the problem wrong?
Any help would be appreciated. Thank you.

Carefully look the pojos you would find something very similar to start date

1 Like

You can’t and you should’nt also try to modify the parameters provided in the method because doing so the assessment for your code won’t be possible. Just look at arguments you will be provided whenever annualizedReturn will be called, you will definitely be able to get the date you want. :slight_smile:

1 Like

NO, You can’t modified the parameters. If you will modified test will fails :slight_smile:

1 Like