Bug due to zerodivision error occured while calculating arithmetic error is fixed