input: 
  from typing import List
  
  def calculate_ranges(ranges: List[List[int]]) -> int:
      """Given a list of ranges (as lists of two integers, where each list represents
      a range [start, end]), calculate the total number of unique integers covered by these ranges.
      >>> calculate_ranges([[1, 3], [2, 4], [5, 6]])
      5
      >>> calculate_ranges([[1, 2], [3, 4]])
      4
      """
  
output:     unique_integers = set()
      for start, end in ranges:
          for num in range(start, end + 1):
              unique_integers.add(num)
      return len(unique_integers)