calculating percentage