Show HN: I Made a Tip Calculator
tip-calculator.co
tip-calculator.co
Start with the bill total before taxes and service charge, if any.
Round to the nearest dollar. Divide by ten (move the decimal place one digit to the left):
127.80 -> 128 -> 12.8
15.95 -> 16 -> 1.60
That gives 10%.
5% is half that. 15% add half to the 10%. For 20% double the 10%. OK to round to make the math easier if necessary.
18% is more than 15% but less than 20%, you don’t have to get it exactly.
If in doubt round up.
To split the tip, divide by the number of people paying. Sigh and skip that one person who will deliver a speech on how they never tip as a matter of principle blah blah.
You should only need a calculator or web site for very large parties. Your phone has a calculator.
If this arithmetic proves challenging you should let your parents pay and tip.
I see these apps, and world clocks, all the time. I will guess that some popular programming textbook or online course assigns these tasks -- like why so many houses have vases and bowls obviously made by children at school art class.