Motion equation and solving for time