Making a more advanced tip calculator