Commercial operations and calculations
Calculate revenue in a target currency
Converts recurring item amounts into configured target currency.
Make it your own
Review the setup and limits below, then open an editable copy in Turbyn.
Use this recipeYour selection stays with you through signup.
What it does
Normalizes each amount by intervalMonths and supplied rate.
What to customize
Set target and precision; supply dated rates in input.
Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.
Expected outcome
This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.
Sample input
sample-input.json
{
"inputFields": {
"field1": "{\"target\": \"USD\", \"rateDate\": \"2026-01-01\", \"rates\": {\"EUR\": \"1.10\"}, \"items\": [{\"sku\": \"plan-a\", \"currency\": \"EUR\", \"amount\": \"120\", \"intervalMonths\": 12}]}"
}
}Sample output
sample-output.json
{
"outputFields": {
"output1": "11.00",
"output2": "USD",
"output3": "{\"rateDate\":\"2026-01-01\",\"rows\":[{\"sku\":\"plan-a\",\"currency\":\"EUR\",\"monthlyTarget\":\"11.00\",\"rate\":\"1.1\"}],\"rounding\":\"half-up; total rounded after summing unrounded rows\"}"
}
}Returned fields
- output1
- total target revenue
- output2
- target currency
- output3
- conversion rows
What changes when it runs
Performs deterministic currency conversion; no external writes.
Ready to try it with your rules?
Map your inputs, test a sample and publish the version you’ve checked.