New price calculation algorithm