tip calculator using method for tip and tax