a basic CGT calculator
How it works:
Input Fields: The user inputs the number of shares, company, cost price, purchase date, sale amount, sale date, and the method they wish to use.
Calculate CGT: Clicking the "Calculate CGT" button will calculate the capital gain or loss for the selected method (FIFO, LIFO, or Lowest Cost), and also compare all three methods.
Results Displayed: The results for the selected method and the comparison of all methods are displayed on the page, along with the transaction history.