public final double NPV(){
  calculate();
  QL.require(!Double.isNaN(this.NPV),"NPV not provided");
  return NPV;
}

public final double NPV ( ) { calculate ( ) ; QL . require ( ! Double . isNaN ( this . NPV ) , "NPV not provided" ) ; return NPV ; }
returns the net present value of the instrument .
