Sounds more like you haven't figured out the needed math.
Take a piece of paper, a pen and some physics formula booklet and try to solved the problem on paper first, before getting lost in some code.
Or at least explain what your actually issue is. "Help with acceleration things" is not informative.