Forum Discussion

itsmeanuj's avatar
itsmeanuj
Copper Contributor
May 06, 2020

Calculate Monthly persistency of customers

Hi,

 

I am working on a client project and need to calculate the monthly persistence of each customer based on their purchase in those months. 

Problem statement: Medicine is subscribed to a patient (1 pill each day). Now based on his purchase of medicine, we need to calculate how persistent he is for the next 6 months on medicine.

 

In an ideal scenario, the patient should take medicine continuously, but he will still be called persistent unless there is a lag of more than 14 days (see row 4 in the example below - he just purchased medicine for 25 days but his persistence is 1 in M1 since lag is less than 14 days).

 

He can either purchase medicine every month (see row 4 below) or in bulk for a few months together (see row 1 below). 

 

So we need to calculate Persistency for each month as 1 or 0.

 

      Allowed Lag14     
Treatment Days  
M1M2M3M4M5M6 P1P2P3P4P5P6
903012000 111100
300300300 101010

1 Reply

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    itsmeanuj I believe the answer to your question lies in the quantity of medication consumed each month. With a 30-day month and a 14 day allowed lag, any given month that has a consumption of at least 16, qualifies as Persistency. By introducing a few helper columns, I calculated the monthly consumption (opening balance + purchased - consumed = closing balance), where the closing balance can not be less than zero.

    The attached workbook demonstrates this is reproduces a Persistency table (in the green area) equal to the on in your example. But, perhaps I completely misunderstood. If so, please ignore.

     

Resources