private double convertTenor ( int maturityInMonths , int tenorInMonths ) { Schedule schedule = fixMetaSchedule . generateSchedule ( referenceDate , maturityInMonths , tenorInMonths ) ; return schedule . getPayment ( schedule . getNumberOfPeriods ( ) - 1 ) ; }
Convert tenor given as offset in months to year fraction .