Calculating difference between 2 dates

I need to calculate the difference between 2 dates, taking into account the leap year.

need help …vry urgent