This would allow popular and profitable works to stay under copyright longer, while allowing less profitable works to enter the public domain sooner.
I think you should wait X years (where X is around 10-20) before that formula kicks in.
The actual numbers might not be perfect, but this kind of system (possibly with different numbers) would eradicate the downside you mention.
It might be appropriate for different types of work to enjoy different copyright terms. You are probably right in saying that 20 years is long enough for a book, but music might last longer due to covers, remixes etc.
It might be also appropriate to have different events occurring after different terms, rather than simply shifting from owned to public domain overnight - e.g.
Up to 30 years: A copyright holder is pretty much god, save for any parody/fair use etc. clauses.
After 30 years: A copyright holder is bound to accede to "reasonable requests", and cannot place unreasonable conditions or fees on use.
After 50 years: Must be properly attributed, but otherwise it is uncontrolled.
After 100 years: Completely public domain, and you can do what you want;
That said I do like the idea of a potentially staggered coverage. Perhaps 0-X: monopoly. X-Y: compulsory licensing. Y+: attribution
Particularly because music already enjoys compulsory licensing and it seems to work fine. And attribution seems like the right thing to do, regardless of the age of the work.
The same can only be said of a small handful of authors, whose older books lend their names, and occasionally their stories to new films.
I also agree that attribution is right regardless of age; but over time, without a central rights management authority, it could be difficult to assign proper attribution, leading to the potential for copyright trolling akin to the kind of patent trolling we see today. Perhaps instead of expiry, there should be a time immemorial for copyright.
That isn't worth restricting everyone else's free speech.
> but some authors would be a bit offended at their characters being used in slashfic, or whatever other weird use people could think of.
And copyright law effectively prevents this how? (Key word there is effectively.)
Less popular authors wouldn't make enough, but they don't make enough regardless. There's very few books which make any real money 20 years after publication, as the chart shows.
The downside would be the moral rights of authors. Some authors are a bit tetchy about their characters being used by other authors. JKR is reputedly pretty cool with fan fiction (she knows her fans will just buy more of her stuff), but some authors would be a bit offended at their characters being used in slashfic, or whatever other weird use people could think of.
On the upside, educators could use it. Sure, there's "fair use", but it's too badly defined to get a definite sense of what "fair" is (for good reasons - a narrow definition would encourage people to abuse it). Teachers and textbook publishers are too stingy to hire copyright lawyers or buy rights, so they just use stuff that's clearly in the public domain. Want to know why textbooks are boring? The lack of public domain materials is one reason (others are listed here: http://www.edutopia.org/textbook-publishing-controversy)