Velocity and Acceleration as function of time (only minor error to previous implementation)