# HR-BR-52

Source: https://xmlvalid.com/rules/HR-BR-52

> Završni datum obračunskog razdoblja stavke računa (BT-135) mora biti veći od 01.01.1900. i manji od 01.01.2100.

- Level: error
- Rule sets: Croatian eRačun rules (UBL) 13.03.2026
- Context: `cac:InvoiceLine | cac:CreditNoteLine`
- Test: `((xs:date(cac:InvoicePeriod/cbc:EndDate) >= xs:date('1900-01-01')) and (xs:date(cac:InvoicePeriod/cbc:EndDate) < xs:date('2100-01-01'))) or (not(exists(cac:InvoicePeriod/cbc:EndDate)))`

In English: The invoice line period end date (BT-135) must be after 1 January 1900 and before 1 January 2100.

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