Avoid setting nil amount if tax calculation is nan.