calculating and proving cost basis

Hi,

I have bought bitcoin multiple times on Coinbase and Coinbase pro, then moved to a Ledger wallet. If I now move it back to Coinbase, how do I calculate cost basis? Is that possible if I don't have the records? Can some software detect and calculate it for me?

 

thanks,