# FX conversion & gain/loss

> The rate is the one in your policy, so you type it. No live rate, no network call, no stale surprise.

Source: https://lopifi.com/tools/fx
Part of: Lopifi — US GAAP books on autopilot, reviewed by a CPA (https://lopifi.com)

---

- **Group:** Money

## Inputs

- `from` — Foreign currency (ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.)
- `to` — Functional currency (ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.)
- `amount` — Foreign amount
- `rate` — Rate at booking (Functional units per one foreign unit.)
- `current` — Rate now / at settlement (The closing (spot) rate at the balance sheet date, or the rate on the day it settled.)
- `side` — The item is
- `kind` — Measurement

Runs entirely in the browser: no network call, no data leaves the page. The same definition powers the Lopifi Tools Chrome extension.
