Stock Profit Loss Calculator using Buy, Sell, Commission Price

This allows users to input stock data and calculates the profit/loss based on those inputs.

This script creates a form with input fields for the buy price, sell price, number of shares, and commission. When the form is submitted, the values are extracted and used to calculate the buy cost, sell cost, total cost, profit/loss, and percent profit/loss. The results are then displayed below the form.

Note that this script assumes that the commission is the same for both the buy and sell transactions.

 

sandeep
Author

sandeep

Leave a Reply

Would you like to receive notifications on latest updates? No Yes