According to Jim - Season 4
Jim gets a hole-in-one and celebrates himself tired. But he’s supposed to give his sperm sample that day and the aforementioned activities are forbidden. He gets Andy to give the sample instead. Well, it seemed a good idea at the time. Jim is supposed to spend a romantic evening with his wife, but he is torn because he wants to see a certain sports event that very same night. Desperate, he decides to con Cheryl - deluded that he can get away with it.