Exponential commitment
To make it easier to find the appropriate quitting time, use an exponentially increasing commitment schedule.
First, work for period t.
When that period is over, commit° to either quit, or to work for a period of 2t.
Then, 4t, 8t, and so forth.