Calculate Cost Basis For Sale