Rewrote calc_per_amp_pt1 to be more understandable since I had no idea what it did