Separated r_offset calculation