you're right that my math is wrong in regards to sale_price < real_company_worth - it should have been the other way around... (real_company_worth < sale_price)... I guess I needed more coffee...
max is correct though (whichever value is highest, that sets the base price).