code: public static function RIGHT($value = '', $chars = 1)
      {
          $value = Functions::flattenSingleValue($value);
          $chars = Functions::flattenSingleValue($chars);
  
          if ($chars < 0) {
              return Functions::VALUE();
          }
  
          if (is_bool($value)) {
              $value = ($value) ? Calculation::getTRUE() : Calculation::getFALSE();
          }
  
          return mb_substr($value, mb_strlen($value, 'UTF-8') - $chars, $chars, 'UTF-8');
      }
docs: RIGHT.
  
  @param string $value Value
  @param int $chars Number of characters
  
  @return string