peev / cryptobeast-reactjs

MIT License
1 stars 2 forks source link

[Summary] Portfolio Profit and Loss calculation (might not need changing) #195

Open KudraVello opened 5 years ago

KudraVello commented 5 years ago

As a user, When I go to the summary tab of the software, I want to see what is the cumulative profit or loss for my portfolio. image

The cumulative profit and loss is calculated with the following formula: ((current portfolio value - total investment)/total investment)*100) displayed in %

DJilanov commented 5 years ago

The current value is: ((this.currentPortfolioCostInUSD - this.summaryTotalInvestmentInUSD) / this.summaryTotalInvestmentInUSD) * 100;

which is correct i think. I move it to test