Adjusted change program to do calculations correctly.