A web-app based on Vanilla Js. To calculate profit Or loss in stocks. Inputs are: Initial Price, Quantity of Stocks, Current Price. output are ho much you have gain/loss in stocks with gain/loss(percantage) respectively. If you have loss more than 50% than the background to be red.
you chcek my app here: https://profit-loss-stocks-shailseen.netlify.app/