The max and min amounts should be calculated after filtering.