calculate base price