Maximum purchase price calculator