At least for my own code, I'm pretty sure its an inverse relationship to quality.
The masterpiece I fretted over for endless hours is guaranteed to be obsolete within 1 year.
The crappy hack with the comment that says "@TODO make not be garbage sorry" is cursed to live on for eternity.