Firstly, try and make variable names that make better sense. dollar1 and dollar2 are not the best names. There are far too many totals as well.

Are you trying to divide the money by the largest...