used alternateUnit ; updated test methods
updated computeAmount method