2 Replies Latest reply on Nov 17, 2014 10:18 AM by kimber1369

    Calculating a percentage up to a finite number.

    kimber1369

      I am trying to create code that will display 70% of a person's weekly income up to $1000.  I need an "if" code so that if the total is over $1000, the box will show $1000 or the lesser amount. 

      I'm new to JavaScript, so any help would be greatly appreciated.