public static double cleanPrice(Bond bond, InterestRate yield, Date settlementDate = null) { return(dirtyPrice(bond, yield, settlementDate) - bond.accruedAmount(settlementDate)); }