Implemented RTO calculation