How is profit in currency market calculated?

Let’s suppose you purchased 1 lot EURUSD at 1.2291 and later closed the position at 1.2391. When opening the position, you bought 100,000 EUR, which is 1,2291 * 100,000 = 122,910 in USD. Basically, you acquired an asset worth 122,910 USD. When closing the position, you sold this asset worth 100,000 EUR, which, due to the price change, cost 123,910 USD (1,2391 * 100,000). Your profit will be 123,910-122,910 = 1,000 USD.