Right now, no matter how many mine, the block reward is the same.
Your formula would be difficult to implement and it's not future proof. After the last halving the miners will earn only from tx fees. How will you formula apply then? It won't. Sorry, IMHO it's not a good idea.
No more halving. The reward of bitcoins would be dynamic and thus the cap of 21 million would be lifted.