why (calculated.intValue() == 0) means that there was fail ?