Caculate relative time