You can export your transaction history into a CSV file that can then be use calculate profit and loss in an Excel spreadsheet.