compute price