# Understanding statements
Statements are the groups of balances that result from credit card transactions. This article explains how Pismo manages the different routines necessary to maintain a simple and reliable credit card balance management function.
You should have some understanding of the following.
* [Network transactions](https://developers.pismo.io/pismo-docs/docs/transactions-overview): Statement balances are calculated according to transaction balances.
* [Pismo core objects](https://developers.pismo.io/pismo-docs/docs/setup-overview): All configurations for statements are at the program or account level. The different statuses at all levels of the hierarchy can change the behavior of statements applications.
> 📘 Statement API endpoints
>
> Statement API endpoints require an account-specific token, not a regular access token. Account tokens are embedded with an account ID.
## Credit card cycles (billing periods)
Credit card contracts always carry a risk of default or delay in payments. To weather this risk, the Pismo platform manages credit card balances and interest accruals in cycles (billing periods). Every statement corresponds to a single cycle. When a cycle ends, another cycle begins. The relationship between transactions and statements can change, but the relationship between a statement and a cycle doesn’t change. This is because statements are ordered through their cycle number.

Every new account, upon creation, has a moving window of 42 cycles. Cycle numbers start at 1 and increment by 1 for each additional cycle. They continue to increment for the life of the account. Every time a cycle is closed, a new one is created in the future, so each account always has one current cycle and 41 future cycles.
## Calendars
Every statement is associated with a calendar, which is a group of dates that are used to determine various things, such as when payments are due. For more information, refer to [Calendar management strategies](https://developers.pismo.io/pismo-docs/docs/calendar-management-strategies-overview).
## Balances
A statement summarizes transaction balances. The statement balance types are:
* previous balance
* debits
* credits
* current balance
* minimum amount due (MAD)
On the cycle closing date, the Pismo platform opens the next statement and uses the old statement's current balance as the previous balance for the next one. The debits and credits balances receive the sum of the amounts of the debit and credit transactions, respectively. A statement’s current balance should equal its previous balance, plus its debits, and less its credits. After the cycle closing date, the balances on a statement cannot be changed.

The Pismo platform updates the debits, credits and current balance values live for each new transaction as it occurs.
Cycle dynamics imply the possibility that a transaction occurs in one cycle, but nets out another transaction that happened in a different cycle. For example, a credit on Statement 2 could compensate for a debit on Statement 1.
The Pismo platform calculates the minimum amount due (MAD) for a statement at the cycle closing date. On this date, the platform assigns an open due date to the account, which equals the closed statement due date and marks the first day of **debt** in cases where an account goes into default.
> 📘 Statement management
>
> You can use the [List statements](https://developers.pismo.io/pismo-docs/reference/getbystatementid) endpoint (and others in the same section) to view account statements.
## Accruals
The MAD determines whether the Pismo platform considers the debits as **paid**, **refinanced** or **overdue**.
* If the sum of the payments made within the grace period (that is, before or on the due date) are greater than or equal to the MAD, but less than the previous balance (that is, the TAD), the debits are discharged in the order determined by the payment hierarchy, and any remaining debits are considered refinanced. They can be identified by their transaction balance being greater than zero.
* If the payments made within the grace period are less than the MAD, the debits are discharged in the order determined by the payment hierarchy, and any remaining debits are considered both refinanced and overdue.
* If the sum of the payments made within the grace period before or on the due date are greater than or equal to the previous balance, the debits are considered paid.

One day after the due date, if the credits received are less than the previous balance, the account starts to accrue interest charges, penalties, and taxes. The Pismo platform posts these accruals as transactions, sets their transaction dates equal to the closing date, and adds them to the total amount due. Note that accruals are posted on the statement being closed.
| Step | Description |
|---|---|
| Annual fee processing | The Pismo platform processes the annual fee into statements by cycle. Each annual fee's installment is registered as a scheduled transaction and won't affect the account limit until it is processed into the statement. You can configure the annual fee amount at the program level. |
| Foreign exchange adjustments | If you configure the program to settle foreign purchases on the cycle closing date (instead of on the transaction date), the Pismo platform processes the converted amount of the transaction into the statement. The platform converts the amount into the currency of the program, using the commercial rate of the cycle closing date. |
| Accrual transactions creation | The Pismo platform processes accrual registries into statements, grouped by their type (interest, default interest, or fine). |
| Tax transactions creation | The Pismo platform processes taxes accrual registries into statements. You can set this to happen on the cycle closing date or on the first day of each month. |
| Pending credit processing | The Pismo platform compensates any credit balance that wasn't discharged upon receipt with debit balances from the current statement. The platform manages balances on a transaction level, using a discharge routine that follows a payment hierarchy. |
| MAD evaluation | The Pismo platform calculates the MAD for each transaction category, sums the results, and posts the sum to the closing statement. You can set the categories on a program or account level. |
| Cycle closing | The Pismo platform closes the current cycle. When a cycle ends, the next one begins, so any transactions that happen on the cycle closing date, after the cycle closing routine, are registered in the new cycle, not the cycle that was just closed. |
| Cycle opening | The Pismo platform opens the next future statement, which becomes the current statement. The platform creates all new transactions in the current statement. For installment contracts, the platform creates the first installment on the current statement. |
| Debt opening date setting | The Pismo platform sets the open due date (which is the same as the due date) for the closed cycle's account. |
| Statement events messaging | The Pismo platform sends the [Statement cycle closed](https://developers.pismo.io/events/docs/statements-cycle-closing-1), [Transaction created,](https://developers.pismo.io/events/docs/transaction-creation-1) and [Credit transaction used for discharge](https://developers.pismo.io/events/docs/balance-discharge-1) events. If the **Indicates whether the cycle opening event should be sent to the first cycle** program parameter is set to `true`, the platform sends the [Statement cycle opened](https://developers.pismo.io/events/docs/statements-cycle-opening-1) event when the first cycle is opened. This event is only sent for the first cycle. If the parameter is `false`, it's never sent. |
| New statement creation | The Pismo platform creates a new account statement. |
| New calendar creation | The Pismo platform creates a new account calendar. |