CALCULATE RATIOS IN R WITH EXAMPLES