Hi, mithil1!
I think that if you do that you won't be retrieving the exact decimal part since not all months have 30 days. Instead of that you can do this, assuming that starting date is in A1 and ending date in B1:
a) separate cells
C1: no. of entire months
=(AÑO(B1)-AÑO(A1))*12+MES(B1)-MES(A1)-(DIA(B1)<DIA(A1)) -----> in English: =(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)-(DAY(B1)<DAY(A1))
D1: no. of remaining days
=RESIDUO(DIA(B1)-DIA(A1)+DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1));DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1))) -----> in English: =MOD(DAY(B1)-DAY(A1)+DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1)),DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1)))
E1: final result
=C1+D1/DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1)) -----> in English: =C1+D1/DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1))
b) unique cell
F1: final result
=(AÑO(B1)-AÑO(A1))*12+MES(B1)-MES(A1)-(DIA(B1)<DIA(A1))+RESIDUO(DIA(B1)-DIA(A1)+DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1));DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1)))/DIA(FIN.MES(FECHA(AÑO(A1);MES(A1);0);1)) -----> in English: =(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)-(DAY(B1)<DAY(A1))+MOD(DAY(B1)-DAY(A1)+DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1)),DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1)))/DAY(EOMONTH(DATE(YEAR(A1),MONTH(A1),0),1))
A bit weird, isn't it? Well, it's not my fault, you've asked the question, now it's you who decide which accuracy you want to achieve... otherwise, talk to Redmond guys.
Hope it helps.
Regards!