A Furstenberg type formula for the speed of distance stationary sequences