I summon the high ranks @DavidCarlisle , @egreg, and @Werner (who is not here) to solve this problem.
https://tex.stackexchange.com/questions/400754/how-to-calculate-and-display-percent-of-screen-that-has-no-content
https://tex.stackexchange.com/questions/400754/how-to-calculate-and-display-percent-of-screen-that-has-no-content