Calculate
Subtract
Takes one thing away from another — numbers, records, or a number from records. The top port is what you start from.
| Port | Side | What it carries |
|---|---|---|
from | In | What you start from — a number or records. |
take away | In | What is taken away from it — a number or records. |
out | Out | The difference — a number if both sides were numbers, records otherwise. |
What you choose
Which side is which. The top port is what you start from; the bottom port is what is taken away. Swap the wires to swap the order.
When a number meets records, the card also asks how the number goes out — the same choice as on Add:
- Balance mode (the default) — takes the number off the balance once. The whole line moves down by that amount.
- Amount mode — takes the number off every row, so it compounds through the balance.
What Fluidly decides
Subtract adapts to what arrives.
| What you connect | What comes out |
|---|---|
| Two numbers | The difference, as a number. |
| Records and records | One set of records: the first as it was, the second with its sign turned, balances netted. |
| Records and a number | The records, with the number taken off as chosen above. |
Where both sides carry a headline figure — a bank account's balance alongside its transactions — the headline of the result is the plain difference of the two, not a figure worked back from the merged rows.
The name follows the wires: Cash and Payables make a Subtract called Cash-Payables.
Example
Forecast → Subtract → Timeline, with Value at Risk → take away: your expected cash, minus what the currency market can take from it, day by day.