Calculates the formula of the compound given the percentage of C, H, N, and O.