There is an error calculating the capital gain for this transaction. You can see in the example that there is a cost (when buying) of 627,81€ and a gain of 917,88€ with a sale fee of 0,92€. The total gain of the transaction should be 289,15€ instead of the 290,98€ shown in the screenshot. Seems the trade fee is counting as a gain instead of a loss?