The bank does this for you. There are often estimators that will help you figure out the approximate exchange rate, which varies day by day.
Here in the USA, the banks usually also add on an small fee for international orders. So the exchange rate has a fee to the bank built in, but that's not enough for the bank. They charge an additional % fee for the currency exchange. Still might be a good deal.