Android app: tip calculator for codepath