BNR annual average
annual_averageCalculate the BNR annual average exchange rate for a currency and year to convert foreign income in Romania’s D212, returning monthly averages, day counts, and partial-year completeness.
Instructions
BNR's annual average rate for a year, as ANAF converts foreign income in the D212 ("cursul de schimb mediu anual comunicat de BNR"): the mean of the twelve monthly averages, each the mean of the month's daily rates, to four places, with the monthly values and their day counts. Not the mean of the daily rates, which differs. A year not over yet answers the months so far with complete: false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | The calendar year, e.g. 2023. | |
| currency | Yes | ISO 4217 code: EUR, USD, GBP, CHF, ... (XAU gold, XDR SDR); case ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| year | Yes | ||
| method | Yes | ||
| months | Yes | ||
| source | Yes | ||
| average | Yes | BNR's exact text, RON per `multiplier` units | |
| warning | No | ||
| complete | Yes | ||
| currency | Yes | ||
| multiplier | Yes |