adding routing metric (overtime) function