travelling up to B with a speed s