calculate interval between two dates