$$P(\text{malware}) = \frac{\text{Number of malicious files}}{\text{Total number of files}} \times 100$$