Well, the longets I have gone without masturbating is 3 weeks. And the longets I have gone without sex is now 2 years and 5 months :( All offers of a sympathy shag greartly recieved! lol
Seriously though, I think I had bouts of depression where I just didn't feel like masturbating. I don't know how long exactly it lasted. Perhaps two or three weeks.