Hi Soumen,
There is function module which gives the difference of number of days. The function module is 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
This function module takes two dates, the start date and the end date.
It calculates number of days, month, and year difference.
Hope this function module will help to solve your problem..