Skip to content

A NodeJS library for effective customer churn calculation.

License

Notifications You must be signed in to change notification settings

cwhitten/butter.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

butter.js

Build Status npm version

A NodeJS library for effective customer churn calculation.

Features

  • Churn rate as a probability - how many customers churned, and how many opportunities did they have to churn
  • Monthly and weekly segments

Background

Every day that a customer keeps their subscription is another day when they didn’t churn. If they are your customer for ten days and churned on the tenth day, they had ten opportunities to churn, and exercised that option on one of the ten days. Another way to think about this is that they churned on 1/10 of the days that they could have churned.

You can aggregate that probability across all of your customers and come up with a more accurate churn rate.

Install

npm install butterjs

Usage

Basic example:

var Butter = require('butterjs');

var churn = new Butter(startCount, endCount, totalChurn, activity, days).churn();

startCount = customers at the start of the period

endCount = customers at the end of the period

totalChurn = existing customers who churned + new customers who churned

activity = the percentage of your user activity in the time interval (best calculated by summing user activity over each day in the period)

days = time interval

Authors

About

A NodeJS library for effective customer churn calculation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published