Changes to fix SourceForge bug report # 119

Calculates broker fees as a minimum value with percentage of total until maximum value is reached.