Python Simples Functions to Compute LTV