Question: write a function that will calculate the taxable capital gain or loss for each sale of a stock. Because the sale of stock may

write a function that will calculate the taxable capital gain or loss

write a function that will calculate the taxable capital gain or loss for each sale of a stock. Because the sale of stock may include units purchased at different times for different prices, this is not a trivial task. Furthermore, there is a 50% discount applied to capital gains where the units of stock have been held for at least 12 months (we consider this to be 365 calendar days). To identify which units of stock have been sold, the Australian Tax Office (ATO) uses the 'first in, first out' principle.

Step by Step Solution

3.38 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python function that calculates the taxable capital gain or loss for each sale of a stock us... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!