DefaultInterest
in package
Read onlyYes
FinalYes
Default interest according to section 288 BGB: base rate plus 9 points (business) or 5 points (consumer), split at every change of the base rate.
Points, flat rate and day count basis come from the dunning law, by default CountryDE::germanDunningLaw(); the calculation is that of Quittio\Core\Dunning\DefaultInterest. The base rates are those shipped with Quittio plus the rates registered with BaseRates (configured or fetched from the Bundesbank), unless a table is given.
Table of Contents
Methods
- __construct() : mixed
- calculate() : array<int, InterestCharge>
- Interest charges for an open amount from the first day of default until $until.
- flatRate() : Money|null
- Flat rate for business debtors (section 288 (5) BGB), once per claim.
Methods
__construct()
public
__construct([BaseRateTable|null $rates = null ][, DunningLaw|null $law = null ]) : mixed
Parameters
- $rates : BaseRateTable|null = null
-
base rates; null = BaseRates::table()
- $law : DunningLaw|null = null
-
null = CountryDE::germanDunningLaw()
calculate()
Interest charges for an open amount from the first day of default until $until.
public
calculate(Money $amount, Date $from, Date $until[, bool $consumer = false ][, string $locale = 'de' ]) : array<int, InterestCharge>
Parameters
Return values
array<int, InterestCharge>flatRate()
Flat rate for business debtors (section 288 (5) BGB), once per claim.
public
flatRate([string $currency = 'EUR' ]) : Money|null
Parameters
- $currency : string = 'EUR'