added a separate function for calculating jitter based on interval's
order of significance; using this function for heartbeat interval
calculation.