issue #20040: fetch and release numbers appropriately
issue #20040: made _calculateTotals really private
issue #20040: made _calculatePrice really private