Tip calculator: gratuity, tax, and splitting the bill