Initialize visitTime and completeTime to 0 before calculating cycleCount