Computing Gain, Loss, And Holding Periods