fix calc_rtt

closes #192