Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
07
:
59
Back to Dashboard
Capital Gains Tax Calculator
Hard
You are given a chronologically sorted list of stock transactions. Each transaction is a list of strings in the format [<timestamp>, <type>, <shares>, <price>], where type is either "buy" or "sell", and all numeric fields are given as strings.
When selling, a 10% tax is applied to any realized profit. If a sale yields no profit (or a loss), no tax is owed. ...