TipCalculator for IOS class Codepath