How long?

How long do you keep sperm in you before going to the bathroom? Or does it not matter.