How to calculate customer lifetime value?

Customer lifetime value is predicted by net profit associated with the future relationship with that customer.
CLV FORMULA:

Customer revenue- gross margin/
Churn rate.