I have written songs on the way to a gig, 15 to 20 minutes, and I am still working on songs so troublesome that feel like I am pounding rocks. My songs that have been forwarded are in the 4-12 hour range.
Some advice. record EVERYTHING, do lyric and chord charts on all the songs, even partials and duds. The mind is a strange thing and you will wake up with a clear idea how to finish and can't remember how to play the damn song.
Hookjaw
"I started out with nothing, and still have most of it left". - Seasick Steve
Yeh, I've put literally minutes into a project and have it come out half-way decent. I've also put a few years into a project (not continuously, of course haha!) and see it turn into something completely different.
I kinda like having a deadline to write for. It definitely keeps you on track. A good 2-3 weeks is nice to let the creative juices flow nicely, and bounce ideas around peer to peer.
I stop working on a track when It stops "bothering" me. What I probably need to do is stop before that, using the law of diminishing returns. There's nothing like time-pressure though, to force you to stop early, and end up with something that ends up being more successful in the market than the other 40-hour song, like you described. I am leaning toward that deadline concept. Those boundaries make you do surprising things, like, tell your dog to bark the verse while you make dinner.
Patty Boss composes music for NBC, CBS, CNN, Fox, Bravo, MTV, VH1, etc.
+1 to Hookjaw's post; I have songs still gestating after 35+ years and others that were written in 12 minutes on the back of a napkin. The 12-minute ones are often better, but not always.
Every so often I'll see something about "knocking out 2 or 3 instrumentals a week". I had a few of those laying around on my homepage when I started on the forums. They're all gone now. It takes me a week to 10 days to get something where it needs to be.
I think I decided a couple songs back that it wasn't real efficient to put more then a week into a song. You never know what the outcome is going to be, and you'll be less apt to be look back and count the hours put into recording producing a song only to have it returned or rejected (whatever the case may be) if you record and mix it in less then a week. The songs I've abandoned I feel got the point where it felt like polishing a turd, to use a crude analogy, where anything you did or tried to do for it made it worse instead of better. I am talking about a 20 hour week maybe into something. What's different is the extra time you may put in after posting peer to peer and people seem to believe in the idea at least enough to offer good advice on tweaking it.