1] =DATEDIF("3/31/2016","6/30/2016","m")
Return 2
2] Reasons maybe……..
3/31/2016 - 5/1/2016 - 1 month ( Complete calendar months between the dates)
5/1/2016 - 6/1/2016 - 1 month ( Complete calendar months between the dates)
6/1/2016 - 6/30/2016 - 0 month ( Not complete calendar months between the dates)
But,
6/1/2016 - 7/1/2016 - 1 month ( Complete calendar months between the dates)
so that,
=DATEDIF("3/31/2016","7/1/2016","m")
Return 3
Regards