Deductions & credits

"I was not aware I could add it to the cost basis of a future buy and sale of the same stock."

 

Incorrect. this is not an option.

see my response above.

P.S.  The broker does all these adjustments for you as long as you are using  only one brokerage account.