Revise logic for AM/PM Out punch input