# Forums

Give help. Get help.

• # July 3, 2012 at 12:16 pm

I’m not the worlds greatest js coder but I can understand it when I look at something already created. With that said, here is what I need some help with.

I’ve found tons of rotators out there but nothing like what I need. I needing one to track how far we are from a goal. For example: We have a goal of \$30,000 to be raised but we have only raised 5,000. It would be nice to be able to show that we have raised \$5,000 but under the image, have a dive that says we only need \$XX,XXX to reach our goal by a certain date. It would also be nice for it to show a percentage of the goal so far.

I really appreciate any help on this.

# July 6, 2012 at 3:58 pm

@ChrisxClash is that math correct? \$25000 to go is not 16.67% of \$30000. You divided the current by the total which gives you the current percent, but not the percentage to go.

It should be:

``````
var percent = (toGo/total)*100;
``````

But either way Madd wants to use it, nice work.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.