Skip to content

fix: formula to calc profit and loss % fix#4

Open
gautam-balamurali wants to merge 1 commit intoneogcamp:mainfrom
gautam-balamurali:formula-bug-fix
Open

fix: formula to calc profit and loss % fix#4
gautam-balamurali wants to merge 1 commit intoneogcamp:mainfrom
gautam-balamurali:formula-bug-fix

Conversation

@gautam-balamurali
Copy link

  • Formula to calculate profit and loss percentage is not taking quantity into accounts.
  • var lossPercentage = (loss / initial) * 100; => var lossPercentage = (loss / (initial * quantity)) * 100;
  • var profitPercentage = (profit / initial) * 100; => var profitPercentage = (profit / (initial * quantity)) * 100;

@netlify
Copy link

netlify bot commented Dec 30, 2022

Deploy Preview for build-profit-or-loss failed.

Name Link
🔨 Latest commit 924cbd2
🔍 Latest deploy log https://app.netlify.com/sites/build-profit-or-loss/deploys/63aea5100e295a0009acb942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments