calculating internal rate of return