Calculate Dynamic Increment For An Allotted Timeframe

I am running at 30 frames per second. I need to increase an x coordinate from 0 to 750 in 0.5 seconds. I could do this by dividing 750/15=50;
So, increase the x coordinate by 50 every frame would be sufficient.

Although, this is not working so I need to be more specific. I need to find out (A) how far my current x coordinate is from the destination coordinate(750), and (B) and how much time is remaining, then increment my x coordinate by the value calculated from those 2 factors.

I would show the algorithms that I have already tried but I don't want to embarrass myself anymore than I have to. :)
Nevermind. Forget using a timer when counting frames is 10 times easier.
Topic archived. No new replies allowed.