If you're sitting down to write a song that's decent it should take less than four hours. On the other hand, if you're struggling with a song that you have no business working on, you could waste days and still not be happy.