Add RTA/RTC simulation code and formula

Thanks!

Best,
Jiguo