FX conversion with two intermediary currencies · Calculation guide

Calculate the output of three successive currency exchanges.

Calculation guide

Enter executable rates as received units per unit sold, including any percentage spread. Deduct each flat fee in that leg’s received units. No intermediate rounding.

out = ((amount*ab-fee1)*bc-fee2)*cd-fee3 · first = amount*ab-fee1 · second = first*bc-fee2

Inputs

Starting units A

Example entry 1000.

B per A

Example entry 2.

C per B

Example entry 0.5.

D per C

Example entry 1.5.

Fee in B

Example entry 10.

Fee in C

Example entry 5.

Fee in D

Example entry 4.

Worked example

InputValue
Starting units A1,000
B per A2
C per B0.5
D per C1.5
Fee in B10
Fee in C5
Fee in D4
ResultValue
Final units D1,481
After first exchange (B)1,990
After second exchange (C)990

Calculation steps

Final units D = ((((((Starting units A × B per A) − Fee in B) × C per B) − Fee in C) × D per C) − Fee in D)

((((((1,000 × 2) − 10) × 0.5) − 5) × 1.5) − 4) = 1,481

After first exchange (B) = ((Starting units A × B per A) − Fee in B)

((1,000 × 2) − 10) = 1,990

After second exchange (C) = ((After first exchange (B) × C per B) − Fee in C)

((1,990 × 0.5) − 5) = 990

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Starting units A1,0001,100Final units D1,4811,631
B per A23Final units D1,4812,231
C per B0.51.5Final units D1,4814,466
D per C1.52.5Final units D1,4812,471
Fee in B1011Final units D1,4811,480.25
Fee in C56Final units D1,4811,479.5
Fee in D45Final units D1,4811,480
FX conversion with two intermediary currencies →