public static Date nextCashFlowDate(Bond bond, Date refDate = null) { if (refDate == null) { refDate = bond.settlementDate(); } return(CashFlows.nextCashFlowDate(bond.cashflows(), false, refDate)); }