Currency Converter

Currency Converter is evaluated from Amount, From Currency and To Currency. The calculation reports Converted Amount, Live Rate and Reverse Rate.

Results

Thanks — we’ve logged this for review.

About the Currency Converter

Currency Converter is treated here as a quantitative relation between Amount, From Currency and To Currency and Converted Amount, Live Rate and Reverse Rate.

The calculator uses a custom php logic configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.

Formula basis:
The calculator looks up the live mid-market rate for the selected From and To currencies, then returns the converted amount, the live rate (1 FROM = X TO), and the reverse rate (1 TO = Y FROM).

Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.

Formula & How It Works

The calculation applies the following relations exactly as recorded in the metadata:

The calculator looks up the live mid-market rate for the selected From and To currencies, then returns the converted amount, the live rate (1 FROM = X TO), and the reverse rate (1 TO = Y FROM).

Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.

Worked Examples

Example 1: Trip to Paris: $1,000 USD to EUR

Inputs

amount: 1000 from_currency: USD to_currency: EUR
Converted Amount: 851.00 EUR. Live Rate: 1 USD = 0.851000 EUR. Reverse Rate: 1 EUR = 1.175088 USD

With Amount = 1,000, From Currency = USD and To Currency = EUR as the stated inputs, the result is Converted Amount = 851.00 EUR, Live Rate = 1 USD = 0.851000 EUR and Reverse Rate = 1 EUR = 1.175088 USD. Each value corresponds to the declared output fields.

Example 2: Cancun Trip: $500 USD to MXN

Inputs

amount: 500 from_currency: USD to_currency: MXN
Converted Amount: 8628.15 MXN. Live Rate: 1 USD = 17.256300 MXN. Reverse Rate: 1 MXN = 0.057950 USD

With Amount = 500, From Currency = USD and To Currency = MXN as the stated inputs, the result is Converted Amount = 8628.15 MXN, Live Rate = 1 USD = 17.256300 MXN and Reverse Rate = 1 MXN = 0.057950 USD. Each value corresponds to the declared output fields.

Example 3: Online Shopping from UK: £50 GBP to USD

Inputs

amount: 50 from_currency: GBP to_currency: USD
Converted Amount: 68.00 USD. Live Rate: 1 GBP = 1.359900 USD. Reverse Rate: 1 USD = 0.735348 GBP

With Amount = 50, From Currency = GBP and To Currency = USD as the stated inputs, the result is Converted Amount = 68.00 USD, Live Rate = 1 GBP = 1.359900 USD and Reverse Rate = 1 USD = 0.735348 GBP. Each value corresponds to the declared output fields.

Example 4: Remittance: $200 USD to India (INR)

Inputs

amount: 200 from_currency: USD to_currency: INR
Converted Amount: 18933.64 INR. Live Rate: 1 USD = 94.668200 INR. Reverse Rate: 1 INR = 0.010563 USD

With Amount = 200, From Currency = USD and To Currency = INR as the stated inputs, the result is Converted Amount = 18933.64 INR, Live Rate = 1 USD = 94.668200 INR and Reverse Rate = 1 INR = 0.010563 USD. Each value corresponds to the declared output fields.

Common Use Cases

  • Convert USD to EUR for European travel
  • Convert USD to MXN for Mexico trip expenses
  • Convert GBP to USD after UK trip receipts