Calculation of Units on TradingView for FX

Hi, question on the TradingView order panel, can someone explain how units are calculated in the trading panel? I know the position size formula as: ($Risk / Stop Loss Distance). In the following CADCHF short example I get ($50/(0.6576 – 0.6515) * 0.6515)= 5,340 units. However, TV calculates 7,266 units, any idea how they come up with that calc? That’s the figure that’s used to calculate P&L, not the trade value down below. I find the difference consistently and wonder what I am missing, thanks!