The math that tells you when to move on in life