A single-point method to quantitatively diagnose the magnetotail flapping motion