Measuring Loyalty Through Behavior: A Practical Framework