Commiting Some logic for Tip Calculator