$
OR
%

const price = dishPrice * (1.0 + extraFeeToSubtotalRatio + tipPercent) - dividedDiscount + tipAmount;