butterjs

1.0.1 • Public • Published

butter.js

BuildStatus 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

Package Sidebar

Install

npm i butterjs

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cwhitten