var mynumber: Int8 = 120

if (Int8.max - mynumber) >= 10 {  // (127 - 120) >= 10
   print("Operation can be performed")
} else {
   print("Operation overflows the variable")
}