Helper to calculate days between given dates