You can calculate an exchange rate by dividing the amount of the currency you start with by the amount of the foreign currency you'll get back. For example, if you have $100 and you get €80 back, your exchange rate would be 100 divided by 80, or 1.25 Euros per dollar.
Most of the time, someone else will calculate the exchange for you. Credit cards automatically handle currency conversion when you make a purchase from...