Foreign Exchange Rates API in Sandbox provides simulated data and not real-time data, therefore, it will not match with the real currency exchange rate calculator. Once you move to production you will be able to work with real data. The rate you will get in production will be correct and you can also markup on it before publishing to your customers.
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.