- Take the user's stock price for one stock when he bought it.
- Take the stocks quantity as well.
- Now take today's price of that Stock.
- Tell the Profit / Loss, the user's making -
- In Percentage
- In Absolute
- HTML
- CSS
- Vanilla JS
https://khr-profit-or-loss.netlify.app/