Calculation of activity percentage implemented.

Signed-off-by: yyenigun <yyenigun@gmail.com>