Do we have to use the number of days between start date and end date or is there some default value?
Yes, we have to find the time taken in years b/w the start and end date.
Now, how to find the time difference?
If we just subtract the years of end date and start date, what would happen if we are selling a stock in less than a year’s span?
So, how should we ideally calculate the no.of years duration b/w the purchase(start) and selling(end) dates? (Hint: Number of years doesn’t have to be a whole number itself)
Hope it helps