Calculates the days between two dates