Created the calcMaxContrib function which assume that the incoming json has the dem_don and repub_don properties