Conversion of the Figma design into code using React.js
Purchase Price = 50
Sale Price = 100
Expenses = 20
Investment Type = Long Term
Annual Income = ($45001 - $120000).
For the above inputs, calculation would be:
Tax Rate = โ$5092 + 32.5% of excess over $45000โ
Capital Gains Amount = 30
Long Term Capital Gains Discount = 15
Net Capital Gains Amount = 15
Tax you need to pay = 4.875 (which is 32.5% of 15)