> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/financials-and-accounts-receivable/find-interest-and-fine-candidates.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Find Interest and Fine Candidates

Finds overdue customer installments with simulated late-payment interest and fines for a bounded company scope. Read-only simulation.

| Business area                      | Action type |
| ---------------------------------- | ----------- |
| Financials and Accounts Receivable | Read-only   |

## Overview

IFS Cloud can simulate late-payment interest and fines per customer installment. The function FetchSimulatedInterestFine reads cust\_inv\_interest\_fine\_qry and, when Calculate is TRUE, computes for each installment at BaseDate: SimulatedInterestAmount (Installment\_Utility\_API.Calculate\_Interest\_Amount), SimulatedFineAmount (Calculate\_Fine\_Amount), SimulatedLatePaymentDays, and the differences against interest and fine already charged (InterestDifference, FineDifference).

IFS Cloud simulates late-payment interest and fines and reads templates and payment history.

## How it works

{% stepper %}
{% step %}
Get Interest Fine Defaults for default Calculate/BaseDate.
{% endstep %}

{% step %}
For a single customer, Get Customer Interest Setup.
{% endstep %}

{% step %}
Simulate Interest Fine Candidates (company, base\_date, identity|group\_id|due window), max 200 rows.
{% endstep %}

{% step %}
Classify candidates vs exclusions per spec. Optionally Get Installment Payment History for top rows with prior charges.
{% endstep %}

{% step %}
Return structured results and any escalation guidance.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads page defaults (Calculate, BaseDate) from the projection.
* Runs the IFS interest and fine simulation at any base date for one company and a bounded filter.
* Filters to installments with open amount and positive simulated interest, fine or late days.
* Separates exclusions: fully paid, cancelled, on hold, bad debt, not yet due.
* Shows interest and fines already charged and the difference against the simulation.
* Reads the customer's interest template (rates, tolerance days, method, minimum amounts) to explain results.
* Reads payment history of a candidate installment to explain partial payments.
* Totals by currency and ranks candidates by simulated interest plus fine, never changes data.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                                   |
| --------- | -------------------------------------------- |
| PAYLED    | McCustomerInvoicesWithInterestFineAnalysis   |
| PAYLED    | CustomerPaymentsPerInvoicePrePaymentAnalysis |

## Version compatibility

| Projection                                   | Supported IFS Cloud releases |
| -------------------------------------------- | ---------------------------- |
| McCustomerInvoicesWithInterestFineAnalysis   | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CustomerPaymentsPerInvoicePrePaymentAnalysis | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
