Late-payment damages (خسارت تأخیر تأدیه)
calculate_late_paymentخسارت تأخیر تأدیه on a debt (مادهٔ ۵۲۲ قانون آیین دادرسی مدنی): what the loss of purchasing power between the month a debt fell due and the month it is paid comes to, from the central bank's price index. Call it for any question about what a late debt is worth today, and never work the figure out yourself. Amounts in rial; dates in the Jalali calendar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due_year | Yes | Jalali year the debt fell due or was demanded. | |
| due_month | Yes | Jalali month, 1 for فروردین. | |
| payment_year | No | Jalali year of payment; this year when they do not say. | |
| payment_month | No | Jalali month of payment, 1 for فروردین. | |
| principal_rial | Yes | اصل دین, in ریال. |