# XV-FI-15

Source: https://xmlvalid.com/rules/XV-FI-15

> EpiInstructedAmount (…) is not InvoiceTotalVatIncludedAmount - InvoicePaidAmount + InvoiceTotalRoundoffAmount (…), as in the guidelines' calculation example (Finvoice 3.0 guidelines, 14).

- Level: warning
- Rule sets: Finvoice 3.0 calculation and payment rules Implementation guidelines 2.6 (16 September 2025)
- Context: `/Finvoice/InvoiceDetails[matches(InvoiceTypeCode, '^(INV|SEI|REC|RES)') or InvoiceTypeCode = 'TES01']`
- Test: `not(../EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount) or fi:same(fi:dec(../EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount), fi:dec(InvoiceTotalVatIncludedAmount) - fi:dec(InvoicePaidAmount) + fi:dec(InvoiceTotalRoundoffAmount))`

Validate a document against these rules: https://xmlvalid.com/validate
