Skip to content
HALOWERK

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-apr

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
discount_percentnumberYesCash discount in percent (e.g. 2).
discount_daysintegerYesDays within which the discount may be deducted.
net_daysintegerYesDays until the net amount is due.
year_daysintegerNoDays per year for the simple rates and the financing interest.
invoice_amountnumberNoInvoice amount (gross) in EUR.
financing_ratenumberNoInterest 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."
    }
  }
}

Open original schema

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

All endpoints in this hub →