Calculate price.