plotNPV, evalTermsFun and utilities