Well, provided you've done all that you absolutely HAVE to do that day, I make the decision to stop when I'm no longer able to focus or when I realize I've been going so nuts with a task that I haven't taken even a bathroom break in longer than an hour. That's generally how I approach it.