currencies rates calculus