When Dynamic Pricing and Profit Meet