Tip calculator for CodePath