refactored average closing time to its own method

for agent prospect processing