stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Stock Return Calculator

  • 1 Devlogs
  • 1 Total hours

A simple website that calculates the profit, loss, and percentage return of a stock investment.

Ship #1 Pending review

I made a Stock Return Calculator that lets users enter a stock’s purchase price, selling price, and number of shares to calculate their total profit or loss and percentage return.

The most challenging part was getting the JavaScript to work correctly. I ran into a few HTML errors, and initially the calculate button wasn’t doing anything. I debugged the error and figuered out what was wrong and fixed it.
I’m proud that I got a working website online and learned how to code with HTML and JavaScript.

To test it, enter your purchase price, your selling price, and however many shares you want. Click Calculate Returns, and it should show your profit and return.

  • 1 devlog
  • 1h
Try project → See source code →
Open comments for this post

1h 19m 29s logged

Today I worked on my Stock Return Calculator, a website that calculates stock investment profits and percentage returns. I had trouble with the design but learned how to use CSS to make it look good. Also the calculation wouldn’t work so I had to debug it and figued out what was wrong with the logic.

0
0
1

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…