Hi Vishal,
Create a variable to combine month and year to get MMYYYY format.
Something like
FormatNumber(Month;"0#")+FormatNumber(Year;"#")
and then create below variable to get the number of months in a month
of a year
=daynumberofmonth(LastDayOfMonth(ToDate("MMYYYY ";"MMyyyy")))