Basic price algorithm