Calculating Ratio of Components