Calculating a tip is simple. You take the bill amount, multiply it by the tip percentage (as a decimal), and add that to the original bill. To split it, just divide the final total by the number of people in your group.
Example: A $100 bill with a 20% tip for 2 people: