Finding the NPV's of a rational expression