Simplify and improve median price display condition