Skip to content

API reference / Quittio \ Country \ AT \ Dunning

BaseRateTable

final readonly class in quittio/country-at · implements ReferenceRates

Quittio\Country\AT\Dunning\BaseRateTable · Source

Basiszinssatz of the Oesterreichische Nationalbank for default interest between businesses (section 456 UGB): the rate on the first day of a half-year applies to the whole half-year. Rates after the last entry are added with withRate().

Constants#

ConstantValueDescription
PUBLISHED['2013-01-01' => '0.38', '2013-07-01' => '-0.12', '2016-07-01' => '-0.62', '2023-01-01' => '1.88', '2023-07-01' => '3.38', '2024-01-01' => '3.88', '2025-01-01' …Published rates in percent, keyed by the first day of the half-year (OeNB, rates for contracts concluded from 16 March 2013).

Methods#

MethodDescription
->__construct()
->lastChange()Date of the most recent known rate, e.g. to warn when the table is outdated.
->periods()Periods with a constant rate between two dates (inclusive start, exclusive end). A table entry that keeps the rate (e.g. 2026-07-01) does not start a new period.
->rateOn()The rate of the half-year of the date (section 456 UGB). Dates from the next half-year after the last known rate on are unknown and rejected.
->validUntil()First day for which the table has no rate: the next 1 January or 1 July after the last change.
->withRate()A copy with a rate in percent from $from on, e.g. a newly published rate.

__construct()#

public function __construct(array<string, string> $rates = self::PUBLISHED)
ParameterTypeDescription
$ratesarray<string, string> = self::PUBLISHEDISO date => rate in percent

lastChange()#

public function lastChange(): Date

Date of the most recent known rate, e.g. to warn when the table is outdated.

Returns
Date

periods()#

public function periods(
    Date $from,
    Date $until,
): list<array{from: Date, until: Date, rate: BigDecimal}>

Periods with a constant rate between two dates (inclusive start, exclusive end). A table entry that keeps the rate (e.g. 2026-07-01) does not start a new period.

ParameterTypeDescription
$fromDate
$untilDate
Returns
list<array{from: Date, until: Date, rate: Brick\Math\BigDecimal}>

rateOn()#

public function rateOn(Date $date): BigDecimal

The rate of the half-year of the date (section 456 UGB). Dates from the next half-year after the last known rate on are unknown and rejected.

ParameterTypeDescription
$dateDate
Returns
Brick\Math\BigDecimal

validUntil()#

public function validUntil(): Date

First day for which the table has no rate: the next 1 January or 1 July after the last change.

Returns
Date

withRate()#

public function withRate(Date|string $from, string $rate): self

A copy with a rate in percent from $from on, e.g. a newly published rate.

ParameterTypeDescription
$fromDate|string
$ratestring
Returns
self

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.