RCtime function added