shorten NPV function