Count p as pm in time input.