Deductions & credits

I am more concerned with how to determine the cost basis. There’s nothing that I can find that simply explains how to calculate that.