jal

← Reports Contents Next: Settings and maintenance →

11. Tax reports

JAL is not a tax adviser and neither is this manual. What follows describes the buttons and the files they produce. Whether the figures are the ones your tax office wants, and how they should be declared, is between you and the rules of your country — check the result before you file it.

JAL can prepare investment tax figures for Portugal and Russia, from the operations on one or several investment accounts, for a calendar year or a part of one.

The Tax menu

What it produces

Tax → Investment tax report:

Preparing a tax report for Portugal

Field What to set
Country Portugal or Russia
Year The tax year. Defaults to last year, which is usually the one being declared.
Period The days of the year the report covers — the whole year unless your residence says otherwise. You can type other dates; they stay inside the year.
Accounts The investment accounts to report on, all ticked. Only investment accounts with something taxable in the period — a sale, a swap, an income, a fee — are listed. Untick an account to leave it out, for example one with a bank of the report’s own country whose figures the tax office already has. See Several accounts.
Excel file Where to write the detailed report.

Press Save Report and JAL writes a spreadsheet with one sheet per kind of income — shares, bonds, dividends, crypto, fees — arranged by the tax bases of the country (below). Each line shows the amounts in the account’s currency, the exchange rate used, the amount in the tax currency and the code the declaration asks for. It is meant to be readable: an inspector (or you, next year) can follow every figure back to the operation it came from. A sheet with nothing on it is left out, and lines under a sheet’s title state the rules it was built on: how deals are matched, which rate is used, what counts as the cost, what JAL assumed about the law.

Part of a year and residence

A report covers the days between From and To: an operation dated outside them is left out, while the rules of the year — its parameters, its codes, the treatment of short sales — stay those of the whole year. The header of every sheet states the period.

When you choose a country or a year, the dialog proposes the period in which that country holds you resident, worked out from the residence table (Data → Residence, see chapter 3), and names it under the dates:

The table stands in for where you really were: JAL counts its rows, not your days of presence. If the table gives nothing for the year, the whole year is proposed. Your own dates stay until you change the country or the year.

If another country holds you resident in the same days — a move from Russia to Portugal in September leaves Russia the whole year and gives Portugal the autumn — the dialog names it too (Also resident in …). Both countries’ reports are then legitimately made on the same operations, each by its own rules; JAL does not decide which country’s claim wins under a tax treaty, nor credit one tax against the other.

A change of residence does not change what your holdings cost: every deal keeps its historical acquisition cost and date, and the sheets of sales say so.

Several accounts

With more than one account ticked, one report covers them all, and the replay of the lots is done once:

Grouping the deals

A sale is reported lot by lot: one line for each purchase it closed, matched first in, first out. An order filled in several trades, or a position built over many purchases, turns into many lines for what the declaration sees as one sale. Two options shorten that without changing a figure — every total, the Summary and the base estimations stay the same to the cent. Both are off unless you turn them on.

Group deals in Excel folds the lots on the sheet:

Choice One group is
No grouping — every lot is a line, as before
Security and sale day the lots of one security sold on one day
Security all the lots of one security
Security, purchase day and sale day the lots of one security bought on one day and sold on one day

A group of several lots gets a bold line of sums above it — quantity, amounts and fees of the purchases and of the sales, income, cost and result — and its lots are folded under that line: the sheet opens with the groups closed, and prints that way. Click + in the left margin to see the lots of one group, or the 2 above the margin to open them all. Nothing is removed: every lot is still on the sheet with its trade numbers, so it can be checked against the broker’s statement. On the bold line a date, a rate or a price is shown only where all its lots share it; where a leg was made of several trades, the number column says how many. A lot alone in its group stays an ordinary line. A short sale is grouped apart from the purchases and sales of the same security, by the sale that opened it.

Shares, funds and derivatives are grouped in both reports, bonds in the Portuguese one only; the Russian bond sheet and the crypto sheets are not.

Merge lots, in the box of the declaration file (see The country options), writes one line of the file for a group instead of one per lot. The spreadsheet is not affected by it, so the detailed sheet stays as the proof behind the shorter file. Choose the matching level in Excel — Security, purchase day and sale day for Portugal, Security and sale day for Russia — and each bold line of the sheet is a line of the file.

Tax bases

The law declares some kinds of income apart from others, and a loss on one kind does not reduce a gain on another. The report follows that division: the sheets are grouped by base, and the Summary gives a total per base.

Losses of earlier years are not carried into the report — that is for the declaration.

The sheets

In the order they are written:

Portugal Russia Base What is on it
Summary Сводка — The totals of each base — see below.
Shares Акции G · securities Sales of shares and funds. In Portugal also the shares given up in a merger into a company outside the EU, as a disposal (Permuta) — see How each country sees an exchange.
Bonds Облигации G · securities Bond sales and redemptions. In Russia the coupons and accrued interest too; in Portugal they go on Interest. The Russian price is per bond, in the trade’s currency.
Derivatives ПФИ G · derivatives Options, futures and other derivatives closed in the year.
Crypto < 365 days — G Crypto sold for money after less than 365 days.
Dividends Дивиденды E · dividends Dividends and the tax withheld at source. The Russian sheet adds the tax still to pay, as a base estimation.
Interest Проценты E · interest Interest the broker paid and cash from corporate actions; in Portugal also bond coupons and accrued interest received. The Russian sheet names the payer and its country, and adds the tax as a base estimation.
— Криптовалюты crypto Crypto deals: every sale, and every exchange of one coin for another.
— Криптодоход crypto income Staking rewards, lending interest and other crypto received as income, valued on the day it arrived.
Crypto ≥ 365 days — outside Crypto sold for money after 365 days or more: excluded, still to be declared.
Crypto income — outside Crypto received as income, for information only: it opens a lot at zero cost and is taxed when sold.
Fees Комиссии outside Fees not linked to a deal — depositary (ADR) fees, position financing, other asset fees — grouped by kind. No base takes them; whether and where to claim them is up to you.
Not covered Не отражено — Everything taxable that no other sheet shows — see below.

In Portugal a crypto-for-crypto exchange is never a sale, so only sales for money appear; in Russia every exchange is one. How each country values them is below.

Short sales

Both reports follow the strict reading of the law: a short sale is reported in the year of the sale, and a buy-back in a later year is not deducted from it. A stock sold short in December and bought back in January — or still open — appears in December’s year with its proceeds less the fee of the sale and no acquisition cost; the next year’s report lists the buy-back on Not covered and deducts nothing. For Russia the year is that of the settlement: a short sold on 30 December and settled in January belongs to January’s year. A short sold and bought back within one year is an ordinary deal. This is why it has always been advised to close shorts before the end of the year.

Only stocks follow this rule. A short of anything else — a fund, a bond, an option, a CFD, a coin — that is open across the end of a year is not handled: the Summary sheet and a message after saving name it, and you have to check it by hand.

The cost of a deal is what was paid, in the currency it was paid in. Moving shares or coins between your own accounts in different currencies does not change it: a coin bought for roubles and sold on a euro exchange costs, in the report, the roubles it was bought for, and the line says so.

Codes

The last column of a sheet holds the code the declaration asks for, from the parameter file of the year:

An account with a bank or broker of the report’s own country (a Russian broker in the Russian report, a Portuguese one in the Portuguese report) gets no codes: tax is withheld there and the tax office receives the figures pre-filled. The sheet says so. The declaration files below still include them.

Summary and “Not covered”

The Summary sheet has a heading per tax base, the sheets of the base under it with their figures, and a total for the base: for sales the acquisition cost, the disposal value and the gain or loss, as the declarations ask for them; for income its gross amount. Bases are never added to each other —

The sheets outside every base follow, listed with their amounts and never totalled. Then come the lines to read before filing:

Below the counts come the base estimations of tax, one line per tax base on sales and per sheet of income that has one, then any warning — rates probably missing, parameters not reviewed for the year — and last the list of your decisions the report applied.

How each country sees an exchange

JAL books an exchange its own way: a swap you recorded as a sale realizes a result, while a swap recorded without a result, a wrapping (ETH → WETH), a supply to or a withdrawal from a lending protocol, and a corporate action carry the cost of the old asset onto the new one. Countries read these differently, and a different reading changes not only the exchange but every later sale of what it gave you. So each report replays the whole history of your lots under its country’s rules, all accounts and all years, and takes its figures from that replay. Your own ledger, holdings, Deals and profit and loss are not touched — they stay as JAL books them.

The replay takes time — around 20 seconds per report on a ledger of several years. A progress bar on the status bar shows it; Stop ends the report without writing anything. The tax window stays locked until it is done. If an exchange the country treats as a sale has no quote to value it, the report stops and names it.

Currency rates

Each report converts with the official rates of one bank only, as the law requires: Portugal uses the European Central Bank’s (they equal the Bank of Portugal’s), Russia the Central Bank of Russia’s. JAL never builds a rate from another bank’s rates. Where a bank stopped publishing a currency, its last rate stays the valid one — the ECB’s rouble rate of 1 March 2022, for example.

Tax parameters

What a report needs to know about the law of a year — which countries have a tax treaty with the jurisdiction, the base tax rate of each kind of income, the code of each kind of line — comes from a parameter file shipped with JAL, one per country. Each value holds from the year it starts to apply until the year it changes, and the file says up to which year it was last reviewed against the official sources.

Base estimation

Some figures are JAL’s estimate rather than a fact from the broker: in the Russian report, the dividend tax still to pay and the tax on interest; in both reports, the tax on each base of sales on the Summary sheet; and the tax in the position details window. Each of them is a base estimation: the base rate of the year from the parameters, applied to the income and nothing more —

It is printed in italics on a pale amber background, the column header says базовая оценка / base estimation, a line under the sheet’s title states the rate, and the Summary sheet adds the estimations up. It is a guide to the order of the amount, not the tax you owe: the declaration computes that.

Your decisions (tax treatment)

JAL’s rules cannot know everything about an operation: a “dividend” that was really a return of capital, a dividend on which the broker could not apply the treaty. Right-click the operation in the operations list and choose Tax treatment…:

The tax treatment dialog

There is one row per country. Choose a decision and write a note — the note is required, as it is printed in the report next to the decision:

A decision belongs to one country: the other country’s report does not see it. An operation that has one shows the tax icon at the right end of its notes in the operations list, and the decisions in the tooltip of its first three columns. Each report lists every decision it applied at the end of its Summary sheet.

The country options

The options under Additional parameters change with the country. Those inside the box of the declaration file apply to that file only and are greyed out until the box is ticked.

Portugal

Russia

Preparing a tax report for Russia

Money flow report (Russia)

Tax → Foreign accounts flow report produces the report on movements of money through a foreign account that Russian residents must file:

The money flow report

Choose the year, choose where to save the spreadsheet, press Save Report.

Merging declaration files

Tax → Merge Russian tax files (*.de5) joins several .de5 declaration files into one — for when different sources of income were prepared separately and have to be filed together. Add the files with +, name the output file, press OK. For JAL’s own accounts it is simpler to tick them all in one report (Several accounts): its file already holds every account’s lines.

Before you file anything

For Interactive Brokers there is a detailed, step-by-step example (in Russian) of preparing a Russian declaration, in the project repository: docs/ru-tax-3ndfl/taxes.md.


← Reports Contents Next: Settings and maintenance →