changed equation to velocity by asking for time and distance