improved getPriceToPay with Sum()