Calcule a duração usando timestamps (string)

const startTime = "2202-05-12T10:00:00Z"
  const endTime = "2202-05-12T11:45:00Z"

  const format_startTime = new Date(startTime);
  const format_endTime = new Date(endTime);

  const differenceInMillis = format_endTime.getTime() - format_startTime.getTime();
  const differenceInHours = differenceInMillis / 1000 / 60 / 60; // 1.75
SAMER SAEID