# Which official rate should a Spanish invoice in dollars use?

See the euro tax base of a foreign-currency invoice using the official Banco de España selling rate in force at the time of accrual, and compare that with the euros actually received from the bank.

Page: https://straightgate.pages.dev/t/spain-invoice-bde-selling-rate/

## Formula and worked examples

### USD 1,200 at an entered official selling rate of 0.9200, bank pays 1,098.50

Inputs: amount = 1200.0, rate = 0.92, received = 1098.5, fees = 0.0

Results: tax_base = 1104.0, fx_diff = -5.5, after_fees = 1098.5

### USD 1,200 at 0.9200, bank pays the same 1,104.00

Inputs: amount = 1200.0, rate = 0.92, received = 1104.0, fees = 0.0

Results: tax_base = 1104.0, fx_diff = 0.0, after_fees = 1104.0

### USD 2,500 at 0.8500, bank pays 2,100.00, bank fees 15.00

Inputs: amount = 2500.0, rate = 0.85, received = 2100.0, fees = 15.0

Results: tax_base = 2125.0, fx_diff = -25.0, after_fees = 2085.0

## Related spreadsheets

- [Libro de Facturas en Divisas para Autónomos — Excel y Google Sheets (tipo BCE, modelo 303, 349 y 130)](https://straightgate.pages.dev/p/vmerzv.md) — $6.50. Buy: https://straightgate.gumroad.com/l/vmerzv?wanted=true
