Using survival analysis to predict customer churn