Rechenwerk
discount apr
For terms such as "2 % within 10 days, net 30" the discount buys (net days − discount days) of credit. Rule of thumb: s × B / (z − k); exact simple rate: s / (100 − s) × B / (z − k) × 100, with B = 360 (default, commercial year) or 365; compounded effective rate: (1 + s/(100 − s))^(365/(z − k)) − 1. With an invoice amount it returns discount, amount payable and, given a financing rate, the interest for paying early with credit (amount payable × rate × (z − k)/B) and the net advantage.
POST https://rechen.halowerk.com/v1/discount-aprInputs
| Field | Type | Required | Description |
|---|---|---|---|
| discount_percent | number | Yes | Cash discount in percent (e.g. 2). |
| discount_days | integer | Yes | Days within which the discount may be deducted. |
| net_days | integer | Yes | Days until the net amount is due. |
| year_days | integer | No | Days per year for the simple rates and the financing interest. |
| invoice_amount | number | No | Invoice amount (gross) in EUR. |
| financing_rate | number | No | Interest rate of the credit line used to pay early, percent per year. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"discount_percent",
"discount_days",
"net_days"
],
"properties": {
"discount_percent": {
"type": "number",
"exclusiveMinimum": 0,
"exclusiveMaximum": 100,
"description": "Cash discount in percent (e.g. 2)."
},
"discount_days": {
"type": "integer",
"minimum": 0,
"maximum": 365,
"description": "Days within which the discount may be deducted."
},
"net_days": {
"type": "integer",
"minimum": 1,
"maximum": 730,
"description": "Days until the net amount is due."
},
"year_days": {
"type": "integer",
"enum": [
360,
365
],
"default": 360,
"description": "Days per year for the simple rates and the financing interest."
},
"invoice_amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Invoice amount (gross) in EUR."
},
"financing_rate": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Interest rate of the credit line used to pay early, percent per year."
}
}
}Published input example
{
"discount_percent": 2,
"discount_days": 10,
"net_days": 30,
"invoice_amount": 10000,
"financing_rate": 9
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Rechenwerk0.003 USDC
ai act risk class
POSThttps://rechen.halowerk.com/v1/ai-act-risk-classEvaluates the caller’s description against Regulation (EU) 2024/1689 as amended by Regulation (EU) 2026/1744: prohibited practices of Art. 5(1)(a)-(h) and the new points (ba) and (bb) (from 2 December 2026); high-risk under Art. 6(1) (safet
- Rechenwerk0.002 USDC
annuity schedule
POSThttps://rechen.halowerk.com/v1/annuity-scheduleMonthly annuity in arrears as used by German banks: rate = loan × (nominal rate + initial repayment rate) / 12, or from a term via A = L·q^n·(q−1)/(q^n−1) with q = 1 + i/12; interest each month = balance × i/12 (30/360), rounded to cents, t
- Rechenwerk0.002 USDC
appeal deadlines
POSThttps://rechen.halowerk.com/v1/appeal-deadlinesCovers only clearly codified periods: Berufung one month and grounds two months (§§ 517, 520(2) ZPO), Revision one and two months (§§ 548, 551(2) ZPO), labour court appeal (§ 66(1) ArbGG), all starting with service of the complete judgment