Implemented (but not tested) amps calculations