Fix Calculate hops for windows