Date | next_unpaid_date | dpd |
---|---|---|
31/05/21 | 18/06/21 | 0 |
30/06/21 | 18/07/21 | 0 |
30/07/21 | 18/07/21 | 12 |
31/08/21 | 18/08/21 | 13 |
30/09/21 | NULL (loan finished) | NULL (loan finished) |
For a given date, d:
dpd = max(0,next_unpaid_date − d)
Days past due cannot be negative. A loan that is 0 DPD is considered current, anything else is considered late.