get distance as int properly