How do you figure the cost basis of a stock if you don't have the purchase information?

It’s not that complicated. All of the info. is online.