Добрый день!
Вы являетесь резидентом Эстонии, при этом источник дохода у Вас находится в Испании.
Таким образом, НДФЛ в России в соответстви со статьей 207 НК Вы не платите.
Налог Вы выплатите в Испании, далее это сумма зачтется при выплате налога в Эстонии.
C
ONVENTION BETWEEN THE KINGDOM OF SPAIN AND ESTONIA
CHAPTER IIITAXATION OF INCOME
Article 6
INCOME FROM IMMOVABLE PROPERTY1.
Income derived by a resident of a Contracting State from immovable property(including income from agriculture or forestry) situated in the other Contracting Statemay be taxed in that other State.
2. In Estonia:a)
Where a resident of Estonia derives income or owns capital which, inaccordance with this Convention, may be taxed in Spain, unless amore favourable treatment is provided in its domestic law, Estoniashall allow:i) as a deduction from the tax on the income of that resident, anamount equal to the income tax paid thereon in Spain;ii) as a deduction from the tax on the capital of that resident, anamount equal to the capital tax paid thereon in Spain
Это налог на доход, не на прибыль.