Calculating Tips. For a given restaurant bill, applying a percentage to the bill to determine the tip.