Annualreturn logic getting failed?

I use the gradle command given in todo for annualReturn function to check if my formula is right or wrong and It gives successfully passing the test case but when I submit the assessment It gives a error?
I use the following command to verify the function implementation.
./gradlew test --tests PortfolioManagerApplicationTest.testCalculateAnnualizedReturn

Did you see which cases are failing in assessment?

No test case was mentioned .The
gradlew buld also passes for all the test cases.

The assessment report in mail does contain the failed tests. Try that.

no,It does not contain any report.Please help @shoryajain I am stuck at this for a long time.
It only mention Task qmoney:compileTestJava failed!

Hey may be you are getting build successful by running ./gradlew build or ./gradlew test but check for logic or syntatical error in your function so for that try to run

./gradlew run --args=‘trades.json 2019-09-01’

if its returning expected output without hardcoded anything then let me know

@amanagar I tried ./gradlew run --args=‘trades.json 2019-09-01’
It showed:
Task ‘2019-09-01’’ not found in root project ‘ME_QMONEY_MODULE_CALCULATIONS’

It shows this @amanagar
Task ‘2019-09-01’’ not found in root project ‘ME_QMONEY_MODULE_CALCULATIONS’.

its returning because of quotes around ‘trades.json 2019-09-01’ retype those quotes by yourself and then try.

It shows a build successful

@amanagar

Task :qmoney:run
Mar 01, 2020 10:15:02 AM com.crio.warmup.stock.PortfolioManagerApplication printJsonObject
INFO: [“AAPL”,“MSFT”,“GOOGL”]
Mar 01, 2020 10:15:05 AM com.crio.warmup.stock.PortfolioManagerApplication printJsonObject
INFO: [“MSFT”,“AAPL”,“GOOGL”]
Mar 01, 2020 10:15:05 AM com.crio.warmup.stock.PortfolioManagerApplication printJsonObject
INFO: [{“symbol”:“MSFT”,“annualizedReturn”:0.6407457414837343,“totalReturns”:0.38483174284279276},{“symbol”:“AAPL”,“annualizedReturn”:0.574
247746469005,“totalReturns”:0.34766608560914214},{“symbol”:“GOOGL”,“annualizedReturn”:0.2515929564683561,“totalReturns”:0.15900506230529587}]

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 8s
3 actionable tasks: 2 executed, 1 up-to-date

Hey @jadgehimanshu1999 i have looked into your code but not able to understand it correctly but as hint i can say that:

  1. Logic Incorrect
  2. Type casting mistake in days variable
  3. edgecases are not getting checked correctly

Thanks

Sir @amanagar Can u again check my latest commit I have removed all the typecasting mistakes now.
.

Sir, please go through my code as well.

hey, did you have any breakthroughs?