finish the CDS basis calculation