Multiply your share of winning trades by your average win, subtract your share of losing trades times your average loss, then take off what each trade costs. With 40% winners, a 25 USDT average win, a 10 USDT average loss and 1 USDT of costs: 0.4 × 24 − 0.6 × 11 = 3.00 USDT a trade.
Gross expectancy ignores costs: 0.4 × 25 − 0.6 × 10 = 4.00 USDT. Net profit factor divides the winning side after costs by the losing side after costs: 0.4 × 24 ÷ (0.6 × 11) = 1.45. The share of winning trades that breaks even is 11 ÷ 35 = 31.43%. The same inputs with costs left out would break even at 10 ÷ 35 = 28.57%. Read trading expectancy in R for the lesson behind the formula.