curatedapi
Browse the docs

Guides

Finance

Excel functions

Late payments

E-invoices

Accounting

Number checks

VAT and GST

Billing and pricing

Money and currencies

Dates and time

Math

Unit conversion

Everyday

Health

Prompt Payment Act interest API

The interest penalty a US federal agency owes on a late invoice under the Prompt Payment Act: the Treasury rate, compounded every 30 days on a 360-day year.

POST https://api.curatedapi.com/v1/calc/payments/late-interest/us-prompt-payment

Uses the Prompt Payment rate in effect on the day after the due date for the whole delay. Unpaid interest is added to the principal at the end of each 30-day period, the leftover days earn simple interest on a 360-day year, and interest stops after one year. This is the Treasury formula P(1 + r/12)ⁿ(1 + r·d/360) − P.

Formula

P(1 + r/12)ⁿ × (1 + r × d/360) − P, n = days ÷ 30, d = the remainder
  • Interest runs from the day after the due date up to and including the day of payment, so paying one day late gives one day of interest.
  • The rate stays the same for the whole delay, even when the Treasury rate changes in between.
  • The reference rates were last checked on 2026-11-07. A period whose rate is not yet known is refused unless you pass reference_rate_percent.

Inputs

Send numbers as strings to keep every digit. options sets precision and rounding (see numbers and rounding).

InputTypeDescription
amount required decimal (string) The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency.
due_date required date (YYYY-MM-DD) The last day the payment was due (interest starts the day after).
payment_date required date (YYYY-MM-DD) The day the payment was or will be made (counted as a day of interest).
reference_rate_percent decimal (string) Use this Prompt Payment rate (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent.
options.rounding half_even | half_up | half_down | up | down | ceiling | floor Rounding mode applied once to each result. Default half_even.
options.decimals integer Round results to this many digits after the decimal point.

Result

Under result in the answer, next to exactness, precision, inputs, formula, references and warnings.

ResultTypeDescription
days_lateintegerDays of interest.
annual_rate_percentstringPrompt Payment rate used.
periods_compoundedintegerWhole 30-day periods (n).
interestdecimal (string)Interest penalty. Unit: currency.
periodslist of objectThe interest period.

Examples

Treasury's worked example: $1,500 due April 1, paid June 15, at 6%

Requestcurl
curl https://api.curatedapi.com/v1/calc/payments/late-interest/us-prompt-payment \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "1500",
    "due_date": "2026-04-01",
    "payment_date": "2026-06-15",
    "reference_rate_percent": "6"
  }'
200 OKResponse
{
  "calculator": "payments/late-interest/us-prompt-payment@1",
  "result": {
    "days_late": 75,
    "annual_rate_percent": "6",
    "periods_compounded": 2,
    "interest": "18.83",
    "periods": [
      {
        "start": "2026-04-02",
        "end": "2026-06-15",
        "days": 75,
        "annual_rate_percent": "6",
        "interest": "18.83"
      }
    ]
  },
  "exactness": {
    "interest": "rounded"
  },
  "precision": {
    "rounding": "half_even",
    "decimals": 2
  },
  "inputs": {
    "amount": "1500",
    "due_date": "2026-04-01",
    "payment_date": "2026-06-15",
    "reference_rate_percent": "6"
  },
  "formula": "P(1 + r/12)ⁿ × (1 + r × d/360) − P, n = days ÷ 30, d = the remainder",
  "references": [
    {
      "title": "5 CFR 1315.10, late payment interest penalties",
      "url": "https://www.ecfr.gov/current/title-5/chapter-III/subchapter-B/part-1315/section-1315.10"
    },
    {
      "title": "Bureau of the Fiscal Service, Prompt Payment monthly interest calculation and worked example",
      "url": "https://fiscal.treasury.gov/payments-from-government/prompt-payment/monthly-interest"
    },
    {
      "title": "Bureau of the Fiscal Service, Prompt Payment interest rates",
      "url": "https://fiscal.treasury.gov/payments-from-government/prompt-payment/rates"
    }
  ],
  "warnings": []
}

$25,000 due 30 June 2026, paid 15 September 2026

Requestcurl
curl https://api.curatedapi.com/v1/calc/payments/late-interest/us-prompt-payment \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "25000",
    "due_date": "2026-06-30",
    "payment_date": "2026-09-15"
  }'
200 OKResponse
{
  "calculator": "payments/late-interest/us-prompt-payment@1",
  "result": {
    "days_late": 77,
    "annual_rate_percent": "4.75",
    "periods_compounded": 2,
    "interest": "254.83",
    "periods": [
      {
        "start": "2026-07-01",
        "end": "2026-09-15",
        "days": 77,
        "annual_rate_percent": "4.75",
        "interest": "254.83"
      }
    ]
  },
  "exactness": {
    "interest": "rounded"
  },
  "precision": {
    "rounding": "half_even",
    "decimals": 2
  },
  "inputs": {
    "amount": "25000",
    "due_date": "2026-06-30",
    "payment_date": "2026-09-15"
  },
  "formula": "P(1 + r/12)ⁿ × (1 + r × d/360) − P, n = days ÷ 30, d = the remainder",
  "references": [
    {
      "title": "5 CFR 1315.10, late payment interest penalties",
      "url": "https://www.ecfr.gov/current/title-5/chapter-III/subchapter-B/part-1315/section-1315.10"
    },
    {
      "title": "Bureau of the Fiscal Service, Prompt Payment monthly interest calculation and worked example",
      "url": "https://fiscal.treasury.gov/payments-from-government/prompt-payment/monthly-interest"
    },
    {
      "title": "Bureau of the Fiscal Service, Prompt Payment interest rates",
      "url": "https://fiscal.treasury.gov/payments-from-government/prompt-payment/rates"
    }
  ],
  "warnings": []
}

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Errors share one format; see errors. Billing, retries and batches work the same for every endpoint.