return 0 duration if positions are equal