Fixed Calculation

Added a line to set the max purchase price of the object at the end of
calcMaxPrice