modifying EMI calculator code