Added the exchange rate calculation logic