Calculates how many days there are between two different dates.