Get interval between dates