Simple iOS tip calculator for CodePath class