One purchase and one sale
If you invest €1,000, pay a €5 purchase fee and sell for €1,120 with another €5 fee, your cost is €1,005 and you receive €1,115. Realised profit is €110 and the approximate simple return is €110 ÷ €1,005 = 10.95%.
A position that remains open
For an unsold investment, subtract accumulated purchase cost from current value. The result is unrealised and can change until you sell. With multiple purchases, add amounts and fees or calculate average cost per unit.
Partial sales
When only part is sold, separate the cost attached to those units. Cash received minus that cost and the selling fee gives the realised result. The remainder keeps its outstanding cost.
What to record
Keep the date, units, price and fee for every purchase and sale. Patry uses those transactions to update units, average price and results without treating a sale as salary or ordinary budget income.