Home > Special Services > Financial Calculators > Profit Earned on Stocks

Profit Earned on Stocks

Profit Earned on Stocks
This estimator will calculate the profit or loss on a stock investment.

"; decimalWin.document.open(); decimalWin.document.writeln(text); decimalWin.document.close(); } function stocks(form) { shares = form.shares.value * 1; buyprice = form.buyprice.value * 1; buycomm = form.buycomm.value * 1; sellprice = form.sellprice.value * 1; sellcomm = form.sellcomm.value * 1; bought = round(parseFloat(shares * buyprice) + buycomm); // price for purchase sold = round(parseFloat(shares * sellprice) - sellcomm); // price sold for result = round(sold - bought); form.buycost.value = "$ " + bought; form.sellcost.value = "$ " + sold; form.result.value = "$ " + result; } // End -->
 
Stock Information

Go to Form Shares
Go to Form Purchase Price
*
Go to Form Sell Price
*
Go to Form Buy commission
Go to Form Sell Commission

* Convert fractions to decimals, click here for table

 

Calculation Results (Calculated for you)

Go to Form Purchased For
Go to Form Sold For
Go to FormResult