I'll take a swag at it..LOL
How much $ did you pay for the stock in the first place? That would be your answer, everything you mentioned has nothing to do with it. It is as simple as how much you paid for it and how much you sold it for, you pay taxes on that difference and if it is a loss you can use that to offset gains now or in the future.