Separate price calculation and formatting