Formula for account status %

Thanks, however in the post the account status percentages are not calculated and furthermore the post doesn’t provide any formula on how to calculate them.
I also found this other post:

but in my opinion the calculation of the % are not general and in any case there are no formulas.
Can anybody else help on this?