Calculating Payment Frequency as a Predictor of Bankruptcy

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
109
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I've got an interesting challenge that I'm not sure how best to tackle.

I'm looking for a possible predictor to a client being unable to pay their invoices. It's not uncommon (unfortunately) for a client to be in financial straits, to order a lot of new goods to sell, then to declare bankruptcy. I'd like to be able to predict when that's going to happen by changes in their payment history.

I've got the following tables to work from:
Payment dates and Invoices
AR_model_data (002).xlsx
ABCD
1Account NoInvoice NoDocument typePosting Date
21003541A3254Payment3/2/2021
31018685A15607Payment3/2/2021
41013827A10562Payment3/2/2021
51014488A15669Payment3/2/2021
61005150A18078Payment3/2/2021
71013566A17385Payment3/2/2021
81005324A16178Payment3/2/2021
91008316A16602Payment3/2/2021
101013407A13859Payment3/2/2021
111014782A15107Payment3/2/2021
121003313A18269Payment3/2/2021
131006219A19335Payment3/2/2021
Payment dates


Sales Orders and Amounts
AR_model_data (002).xlsx
ABCDEFG
1Account noPayment Terms CodeResponsibility CenterPosting dateDocument TypeInvoice NoAmount
21005694CC3FIELD3/12/2021SIA1143375
31000734NET30INTERNET3/1/2021SIA1758438.64
41012441CC3FIELD3/1/2021SIA178142043
51000734NET30INTERNET3/1/2021SIA1724538.64
61000734NET30INTERNET3/1/2021SIA1942277.28
71000734NET30INTERNET3/1/2021SIA1989077.28
81000734NET30INTERNET3/1/2021SIA1772738.64
91000734NET30INTERNET3/1/2021SIA1535438.64
101000734NET30INTERNET3/1/2021SIA1890738.64
Sales transactions


What strategy would you use to match invoices and payments to then determine a payment frequency?

Initially I thought I'd run a simple SUMIFS formula to calculate the invoices and the outstanding balance, but that really won't give me the frequency of payment. I may get a regular payment (in some cases) as often as weekly, but usually it's a monthly payment. When payments start coming in at intervals that aren't in line with historical payments, that's what I want to flag and investigate. I'm looking to do this analysis for about 15,000 customers.

Any thoughts on how best to accomplish this?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I'm not sure about your sample data - so I made up some simple data - just a list of when you get paid from different accounts.

In D1, the number of days prior to TODAY that separates "historic" for "newer payments". So column D is a list of all the accounts, and column E shows the average days between payments for recent ones, and F is average days for older payments.

I can't say how this would perform for 15,000 customers and hundreds of thousands of records.

MrExcelPlayground12.xlsx
ABCDEFG
1AccountPayment Date120
2112/7/2021Recent Payments (average days between payments)Older Payments (average days between payments)Change
3212/18/2021118.036.018.0
4312/24/2021214.534.520.0
521/7/2022318.454.536.1
611/14/20224118.022.8-95.2
711/23/2022
841/28/2022
912/12/2022
1022/25/2022
1143/12/2022
1233/26/2022
1344/1/2022
1434/12/2022
1544/17/2022
1614/30/2022
1745/10/2022
1845/22/2022
1946/1/2022
2036/10/2022
2136/17/2022
2237/1/2022
2337/16/2022
2437/25/2022
2528/7/2022
2628/18/2022
2718/29/2022
2829/5/2022
2939/10/2022
3019/16/2022
3149/27/2022
Sheet10
Cell Formulas
RangeFormula
A2:A31A2=RANDARRAY(30,1,1,4,TRUE)
D3:D6D3=SORT(UNIQUE(A2:A31))
E3:E6E3=LET(a,FILTER($B$2:$B$31,($A$2:$A$31=D3)*($B$2:$B$31>TODAY()-$D$1)),mn,MIN(a),mx,MAX(a),c,ROWS(a),(mx-mn)/(c-1))
F3:F6F3=LET(a,FILTER($B$2:$B$31,($A$2:$A$31=D3)*($B$2:$B$31<=TODAY()-$D$1)),mn,MIN(a),mx,MAX(a),c,ROWS(a),(mx-mn)/(c-1))
G3:G6G3=F3-E3
B2:B30B2=B3-RANDBETWEEN(5,15)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,822
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top