flatten logic to calculate blink phases.