tip calculator for proj1