Removed exception and associated test cases as unchecked exception only option without violating the current method signature and unchecked is not ideal in this context so just returning double value -1 if error.