The formula
ROI = (final value + income received − initial amount − later additions − fees) ÷ (initial amount + later additions + fees) × 100.
Everything paid counts as invested, which is why a commission belongs in the cost basis instead of being netted off the outcome. The gain sits in the numerator and everything paid for it sits in the denominator. A 1% fee on a 10% gain is not a rounding error: it takes a tenth of the return, because the fee dollars never get to compound or count as gain.